Fix for r55810: oly set $optionsWithArgs if it's not defined, as in the old version...
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Sat, 5 Sep 2009 19:40:52 +0000 (19:40 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Sat, 5 Sep 2009 19:40:52 +0000 (19:40 +0000)
maintenance/commandLine.inc

index e241d5e..6ed7b2e 100644 (file)
@@ -4,7 +4,10 @@
  * Backwards-compatibility wrapper for old-style maintenance scripts
  */
 require( dirname(__FILE__) . '/Maintenance.php' );
-$optionsWithArgs = array();
+
+if ( !isset( $optionsWithArgs ) ) {
+    $optionsWithArgs = array();
+}
 
 class CommandLineInc extends Maintenance {
        public function __construct() {