X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Fdirectory.php;h=85476bd5fdf498eaed07787c6c8e695732c2bd1f;hb=b5dccb0a956502ac41f5a7806e284b84807272cd;hp=cae78adb4e61564c161f390ed5959fe04c6f112c;hpb=994011ddb6cc1097214537160a10bf710aedc553;p=friendica.git diff --git a/include/directory.php b/include/directory.php index cae78adb4e..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; - 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(); }