X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Fdirectory.php;h=85476bd5fdf498eaed07787c6c8e695732c2bd1f;hb=28b2e599fb6ee3ee9ca0f3e3791482686cdbb902;hp=2c9daa5ea6f3b025241a0a2d65f79bc734c417c1;hpb=e7d87e4ab3086b7cc10e92bfee769179f80a4d0d;p=friendica.git diff --git a/include/directory.php b/include/directory.php index 2c9daa5ea6..85476bd5fd 100644 --- a/include/directory.php +++ b/include/directory.php @@ -1,38 +1,53 @@ set_baseurl(get_config('system','url')); - $dir = get_config('system','directory_submit_url'); + $dir = get_config('system','directory'); if(! strlen($dir)) return; - fetch_url($dir . '?url=' . bin2hex($argv[1])); + $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'])); return; } if (array_search(__file__,get_included_files())===0){ - directory_run($argv,$argc); + directory_run($_SERVER["argv"],$_SERVER["argc"]); killme(); }