From d311beffec77b01e058f0ad1b9955af14d3ff95e Mon Sep 17 00:00:00 2001 From: Kevin Israel Date: Sat, 23 Feb 2013 21:16:03 -0500 Subject: [PATCH] Web installer: fix "Upgrade existing installation" Fixes a regression caused by Ic166066a: when updating an existing database, the web installer uses the DatabaseUpdater class, which requires Maintenance.php. Bug: 45257 Change-Id: Ie2dc80ab1e0cd9a9552b51dce6681f748aa38ab7 --- maintenance/Maintenance.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/maintenance/Maintenance.php b/maintenance/Maintenance.php index 01cc62721f..a13453df48 100644 --- a/maintenance/Maintenance.php +++ b/maintenance/Maintenance.php @@ -20,10 +20,6 @@ * @defgroup Maintenance Maintenance */ -if( PHP_SAPI != 'cli' ) { - die( "Run me from the command line please.\n" ); -} - // Make sure we're on PHP5.3.2 or better if ( !function_exists( 'version_compare' ) || version_compare( PHP_VERSION, '5.3.2' ) < 0 ) { // We need to use dirname( __FILE__ ) here cause __DIR__ is PHP5.3+ -- 2.20.1