]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
$args Was Out Of Scope in CheckMirror.
authorChristopher Vollick <psycotica0@gmail.com>
Fri, 7 Aug 2009 12:28:20 +0000 (08:28 -0400)
committerEvan Prodromou <evan@controlyourself.ca>
Mon, 10 Aug 2009 20:33:07 +0000 (16:33 -0400)
It looks like when the code was factored out no one noticed this variable doesn't exist here.

index.php

index 5f9a048f2c7225917dcc56bfbb1b7326067ef4f9..88e2aa0f09af3b3c95e5bd912d26dfeaccf25df0 100644 (file)
--- a/index.php
+++ b/index.php
@@ -73,7 +73,7 @@ function handleError($error)
     exit(-1);
 }
 
-function checkMirror($action_obj)
+function checkMirror($action_obj, $args)
 {
     global $config;
 
@@ -178,7 +178,7 @@ function main()
     } else {
         $action_obj = new $action_class();
 
-        checkMirror($action_obj);
+        checkMirror($action_obj, $args);
 
         try {
             if ($action_obj->prepare($args)) {