pass $argv & $argc as reference to *_run() functions.

This commit is contained in:
Fabrixxm 2012-11-05 09:28:54 +01:00
parent aa20042bec
commit 385ee5a862
8 changed files with 8 additions and 8 deletions

View file

@ -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)) {

View file

@ -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)) {

View file

@ -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)) {

View file

@ -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)) {

View file

@ -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)) {

View file

@ -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)) {

View file

@ -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)){

View file

@ -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";