From 11c921c459dd8a2bc4da585cfea1555712fbc778 Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Sat, 5 Sep 2009 19:40:52 +0000 Subject: [PATCH] Fix for r55810: oly set $optionsWithArgs if it's not defined, as in the old version; when defined by scripts, it's always set before including commandLine.inc, and thus setting it always to an empty array will break these scripts --- maintenance/commandLine.inc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/maintenance/commandLine.inc b/maintenance/commandLine.inc index e241d5e931..6ed7b2e5b3 100644 --- a/maintenance/commandLine.inc +++ b/maintenance/commandLine.inc @@ -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() { -- 2.20.1