From 385ee5a86207106408a20a3d2ec6dbeb3a313238 Mon Sep 17 00:00:00 2001 From: Fabrixxm <fabrix.xm@gmail.com> Date: Mon, 5 Nov 2012 09:28:54 +0100 Subject: [PATCH] pass $argv & $argc as reference to *_run() functions. --- include/cronhooks.php | 2 +- include/directory.php | 2 +- include/expire.php | 2 +- include/gprobe.php | 2 +- include/onepoll.php | 2 +- include/poller.php | 2 +- include/queue.php | 2 +- util/po2php.php | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/include/cronhooks.php b/include/cronhooks.php index 37541f013e..27cf642b22 100644 --- a/include/cronhooks.php +++ b/include/cronhooks.php @@ -3,7 +3,7 @@ require_once("boot.php"); -function cronhooks_run($argv, $argc){ +function cronhooks_run(&$argv, &$argc){ global $a, $db; if(is_null($a)) { diff --git a/include/directory.php b/include/directory.php index 45386183c6..356118bb08 100644 --- a/include/directory.php +++ b/include/directory.php @@ -1,7 +1,7 @@ <?php require_once("boot.php"); -function directory_run($argv, $argc){ +function directory_run(&$argv, &$argc){ global $a, $db; if(is_null($a)) { diff --git a/include/expire.php b/include/expire.php index 755cd2494b..373ebf55fe 100644 --- a/include/expire.php +++ b/include/expire.php @@ -2,7 +2,7 @@ require_once("boot.php"); -function expire_run($argv, $argc){ +function expire_run(&$argv, &$argc){ global $a, $db; if(is_null($a)) { diff --git a/include/gprobe.php b/include/gprobe.php index 5ca42729a7..88e6bad4a4 100644 --- a/include/gprobe.php +++ b/include/gprobe.php @@ -4,7 +4,7 @@ require_once("boot.php"); require_once('include/Scrape.php'); require_once('include/socgraph.php'); -function gprobe_run($argv, $argc){ +function gprobe_run(&$argv, &$argc){ global $a, $db; if(is_null($a)) { diff --git a/include/onepoll.php b/include/onepoll.php index 17588d183f..b7199deb61 100644 --- a/include/onepoll.php +++ b/include/onepoll.php @@ -2,7 +2,7 @@ require_once("boot.php"); -function onepoll_run($argv, $argc){ +function onepoll_run(&$argv, &$argc){ global $a, $db; if(is_null($a)) { diff --git a/include/poller.php b/include/poller.php index fefc9b381d..235603979d 100644 --- a/include/poller.php +++ b/include/poller.php @@ -3,7 +3,7 @@ require_once("boot.php"); -function poller_run($argv, $argc){ +function poller_run(&$argv, &$argc){ global $a, $db; if(is_null($a)) { diff --git a/include/queue.php b/include/queue.php index ba3babe70d..b703f930b6 100644 --- a/include/queue.php +++ b/include/queue.php @@ -2,7 +2,7 @@ require_once("boot.php"); require_once('include/queue_fn.php'); -function queue_run($argv, $argc){ +function queue_run(&$argv, &$argc){ global $a, $db; if(is_null($a)){ diff --git a/util/po2php.php b/util/po2php.php index c703172af7..f29980d6ac 100644 --- a/util/po2php.php +++ b/util/po2php.php @@ -1,7 +1,7 @@ <?php -function po2php_run($argv, $argc) { +function po2php_run(&$argv, &$argc) { if ($argc!=2) { print "Usage: ".$argv[0]." <file.po>\n\n";