aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/directory.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/directory.php b/include/directory.php
index 732c0189b..f35cb4cb4 100644
--- a/include/directory.php
+++ b/include/directory.php
@@ -6,7 +6,7 @@ function directory_run($argv, $argc){
cli_startup();
- if($argc != 2)
+ if(argc() != 2)
return;
$dir = get_config('system','directory_submit_url');
@@ -14,7 +14,7 @@ function directory_run($argv, $argc){
if(! strlen($dir))
return;
- $arr = array('url' => $argv[1]);
+ $arr = array('url' => argv(1));
call_hooks('globaldir_update', $arr);