diff options
author | friendica <info@friendica.com> | 2012-05-21 16:40:11 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2012-05-21 16:40:11 -0700 |
commit | 54e2c1ca81b99d4ac418e9287e00440de1fdc664 (patch) | |
tree | e5c9e19d7cd70cde350e47d19d31e3ecee9c1df2 /include | |
parent | 71fe34332454e6dab239f8af27a1dcac3ba4b2e5 (diff) | |
download | volse-hubzilla-54e2c1ca81b99d4ac418e9287e00440de1fdc664.tar.gz volse-hubzilla-54e2c1ca81b99d4ac418e9287e00440de1fdc664.tar.bz2 volse-hubzilla-54e2c1ca81b99d4ac418e9287e00440de1fdc664.zip |
rev update, bug 428, 429, and ability to block globaldir submissions from demo sites
Diffstat (limited to 'include')
-rw-r--r-- | include/directory.php | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/include/directory.php b/include/directory.php index cae78adb4..45386183c 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; } |