Browse Source

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

pull/525/head
Fabrixxm 9 years ago
parent
commit
385ee5a862
  1. 2
      include/cronhooks.php
  2. 2
      include/directory.php
  3. 2
      include/expire.php
  4. 2
      include/gprobe.php
  5. 2
      include/onepoll.php
  6. 2
      include/poller.php
  7. 2
      include/queue.php
  8. 2
      util/po2php.php

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

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

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

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

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

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

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

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

Loading…
Cancel
Save