X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Fdirectory.php;h=85476bd5fdf498eaed07787c6c8e695732c2bd1f;hb=5317c0b28fa33815dec0a1e152e144c090d48c06;hp=29a793a2a01ecba93efe2a11ac7b6adea3d1d7ff;hpb=f1c579e74a438bfab6dce15c6bbe0075084bbf68;p=friendica.git diff --git a/include/directory.php b/include/directory.php index 29a793a2a0..85476bd5fd 100644 --- a/include/directory.php +++ b/include/directory.php @@ -7,10 +7,10 @@ function directory_run(&$argv, &$argc){ if(is_null($a)) { $a = new App; } - + if(is_null($db)) { @include(".htconfig.php"); - require_once("dba.php"); + require_once("include/dba.php"); $db = new dba($db_host, $db_user, $db_pass, $db_data); unset($db_host, $db_user, $db_pass, $db_data); }; @@ -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(); }