There is now only one central parameter for the global directory.

This commit is contained in:
Michael Vogel
2015-09-15 22:29:02 +02:00
parent 6b744aa71c
commit 5ac38b7f99
19 changed files with 92 additions and 99 deletions
+4 -2
View File
@@ -7,7 +7,7 @@ function directory_run(&$argv, &$argc){
if(is_null($a)) {
$a = new App;
}
if(is_null($db)) {
@include(".htconfig.php");
require_once("include/dba.php");
@@ -29,11 +29,13 @@ function directory_run(&$argv, &$argc){
$a->set_baseurl(get_config('system','url'));
$dir = get_config('system','directory_submit_url');
$dir = get_config('system','directory');
if(! strlen($dir))
return;
$dir .= "/submit";
$arr = array('url' => $argv[1]);
call_hooks('globaldir_update', $arr);