X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Fdirectory.php;h=85476bd5fdf498eaed07787c6c8e695732c2bd1f;hb=05b2836d660c043d00b204c05463e720bb72f62a;hp=2c9daa5ea6f3b025241a0a2d65f79bc734c417c1;hpb=e962561f8d511129d87b5e50eede8e96b2bdfb7c;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(); }