eta shows revs/pages per sec in current interval as well as overall; useful for inves...
[lhc/web/wiklou.git] / maintenance / update.php
index 4cb2194..e4e874e 100644 (file)
@@ -25,8 +25,8 @@
  * @ingroup Maintenance
  */
 
-if ( !function_exists( 'version_compare' ) || ( version_compare( phpversion(), '5.1.0' ) < 0 ) ) {
-       echo "You are using PHP version " . phpversion() . " but MediaWiki needs PHP 5.1.0 or higher. ABORTING.\n" .
+if ( !function_exists( 'version_compare' ) || ( version_compare( phpversion(), '5.2.3' ) < 0 ) ) {
+       echo "You are using PHP version " . phpversion() . " but MediaWiki needs PHP 5.2.3 or higher. ABORTING.\n" .
        "Check if you have a newer php executable with a different name, such as php5.\n";
        die( 1 );
 }
@@ -50,7 +50,7 @@ class UpdateMediaWiki extends Maintenance {
                return 2 /* Maintenance::DB_ADMIN */;
        }
 
-       private function compatChecks() {
+       function compatChecks() {
                $test = new PhpXmlBugTester();
                if ( !$test->ok ) {
                        $this->error(
@@ -131,4 +131,4 @@ class UpdateMediaWiki extends Maintenance {
 }
 
 $maintClass = 'UpdateMediaWiki';
-require_once( DO_MAINTENANCE );
+require_once( RUN_MAINTENANCE_IF_MAIN );