From c23ce49760ca1b94085eb25a94bb8b415d62d413 Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Sat, 6 Nov 2010 22:34:57 +0000 Subject: [PATCH] Fix two errors from r76220: * Fatal error: Call to undefined function readlineEmulation() in maintenance/Maintenance.php on line 1075 * sh: Array: command not found --- maintenance/Maintenance.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/maintenance/Maintenance.php b/maintenance/Maintenance.php index b459c3f474..10ae5ed82c 100644 --- a/maintenance/Maintenance.php +++ b/maintenance/Maintenance.php @@ -1072,7 +1072,7 @@ abstract class Maintenance { return readline( $prompt ); } else { if ( $isatty ) { - $st = readlineEmulation( $prompt ); + $st = self::readlineEmulation( $prompt ); } else { if ( feof( STDIN ) ) { $st = false; @@ -1092,7 +1092,7 @@ abstract class Maintenance { * @return String */ private static function readlineEmulation( $prompt ) { - $bash = array( 'bash' ); + $bash = 'bash'; if ( !wfIsWindows() && Installer::locateExecutableInDefaultPaths( $bash ) ) { $retval = false; $encPrompt = wfEscapeShellArg( $prompt ); -- 2.20.1