Browse Source

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

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

+ 1
- 1
include/cronhooks.php 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)) {


+ 1
- 1
include/directory.php 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)) {


+ 1
- 1
include/expire.php 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)) {


+ 1
- 1
include/gprobe.php 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)) {


+ 1
- 1
include/onepoll.php 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)) {


+ 1
- 1
include/poller.php 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)) {


+ 1
- 1
include/queue.php 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)){


+ 1
- 1
util/po2php.php 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";


Loading…
Cancel
Save