From: Kevin Israel Date: Sun, 24 Feb 2013 02:16:03 +0000 (-0500) Subject: Web installer: fix "Upgrade existing installation" X-Git-Tag: 1.31.0-rc.0~20589 X-Git-Url: http://git.cyclocoop.org/%24image?a=commitdiff_plain;h=d311beffec77b01e058f0ad1b9955af14d3ff95e;p=lhc%2Fweb%2Fwiklou.git 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 --- 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+