Web installer: fix "Upgrade existing installation"
authorKevin Israel <pleasestand@live.com>
Sun, 24 Feb 2013 02:16:03 +0000 (21:16 -0500)
committerKevin Israel <pleasestand@live.com>
Sun, 24 Feb 2013 02:16:03 +0000 (21:16 -0500)
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

index 01cc627..a13453d 100644 (file)
  * @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+