X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Fdirectory.php;h=45386183c611c3fdce5470eeecdca1ef9df2fa6b;hb=0f5a6bfcdbde8f53283826251056a4670bdf9f7a;hp=cae78adb4e61564c161f390ed5959fe04c6f112c;hpb=994011ddb6cc1097214537160a10bf710aedc553;p=friendica.git diff --git a/include/directory.php b/include/directory.php index cae78adb4e..45386183c6 100644 --- a/include/directory.php +++ b/include/directory.php @@ -24,6 +24,9 @@ function directory_run($argv, $argc){ load_config('system'); + load_hooks(); + + $a->set_baseurl(get_config('system','url')); $dir = get_config('system','directory_submit_url'); @@ -31,7 +34,12 @@ function directory_run($argv, $argc){ if(! strlen($dir)) return; - fetch_url($dir . '?url=' . bin2hex($argv[1])); + $arr = array('url' => $argv[1]); + + call_hooks('globaldir_update', $arr); + + if(strlen($arr['url'])) + fetch_url($dir . '?url=' . bin2hex($arr['url'])); return; }