From 364266e7a0f11f8e39712ad0a8c1fc4d89c75b06 Mon Sep 17 00:00:00 2001 From: Mike Macgirvin Date: Tue, 23 Oct 2012 20:51:41 +1100 Subject: cleanup --- include/directory.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/directory.php') 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); -- cgit v1.2.3