X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Fdirectory.php;h=85476bd5fdf498eaed07787c6c8e695732c2bd1f;hb=3af7cff281d0a0af6759340684adb75723b34071;hp=45386183c611c3fdce5470eeecdca1ef9df2fa6b;hpb=12474e3c2eb21e4b5f9f6cd4b9d223f1f39bfe89;p=friendica.git diff --git a/include/directory.php b/include/directory.php index 45386183c6..85476bd5fd 100644 --- a/include/directory.php +++ b/include/directory.php @@ -1,16 +1,16 @@ 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); + logger('Updating directory: ' . $arr['url'], LOGGER_DEBUG); if(strlen($arr['url'])) fetch_url($dir . '?url=' . bin2hex($arr['url'])); @@ -45,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(); }