X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Fdirectory.php;h=85476bd5fdf498eaed07787c6c8e695732c2bd1f;hb=a770be3cb6fdc305712da58e188de4e82f3b7234;hp=5c1a7c4b4c71a727271257dd45525d013e16b1d8;hpb=307cada234687124ebbcfec867cb6b8cc307897c;p=friendica.git diff --git a/include/directory.php b/include/directory.php index 5c1a7c4b4c..85476bd5fd 100644 --- a/include/directory.php +++ b/include/directory.php @@ -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); @@ -46,6 +48,6 @@ function directory_run(&$argv, &$argc){ } if (array_search(__file__,get_included_files())===0){ - directory_run($argv,$argc); + directory_run($_SERVER["argv"],$_SERVER["argc"]); killme(); }