]> git.mxchange.org Git - friendica.git/commitdiff
pass $argv & $argc as reference to *_run() functions.
authorFabrixxm <fabrix.xm@gmail.com>
Mon, 5 Nov 2012 08:28:54 +0000 (09:28 +0100)
committerFabrixxm <fabrix.xm@gmail.com>
Mon, 5 Nov 2012 08:28:54 +0000 (09:28 +0100)
include/cronhooks.php
include/directory.php
include/expire.php
include/gprobe.php
include/onepoll.php
include/poller.php
include/queue.php
util/po2php.php

index 37541f013e97abbd9b912459f2b2d461abf8946f..27cf642b22776d238fff3447a061321c6799993d 100644 (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)) {
index 45386183c611c3fdce5470eeecdca1ef9df2fa6b..356118bb08d5ca1dbef2ec824399275732768de2 100644 (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)) {
index 755cd2494b94ee108547c45898649d61966a9823..373ebf55fead6df625e33bc716104c4139319bb0 100644 (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)) {
index 5ca42729a701c60159bfd2b0213831ee86bef229..88e6bad4a4f6ccb3329f7aed9e935d29a40f9ebd 100644 (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)) {
index 17588d183f16e863fb9c213729e9b5145b27a798..b7199deb616090d6fc36fdbfb49fd88409325df0 100644 (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)) {
index fefc9b381d4a6c18d74cdb20eff26b57aaa42a38..235603979dbf6f8b9b0630d92b18f17848f5bed5 100644 (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)) {
index ba3babe70dd3c4538876dc691dba385edebfafc6..b703f930b6b80fcef848608dd0826636a5ad8f28 100644 (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)){
index c703172af76acedc30ab5d87928af5d8282e9090..f29980d6ac3c0cf5b22e976c1db7f2fe9c9960d2 100644 (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";