r107908 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r107907‎ | r107908 | r107909 >
Date:17:38, 3 January 2012
Author:reedy
Status:ok
Tags:
Comment:
Fix 107907, wgAllowSchemaUpdates stufffs
Modified paths:
  • /branches/REL1_18/phase3/maintenance/update.php (modified) (history)

Diff [purge]

Index: branches/REL1_18/phase3/maintenance/update.php
@@ -43,7 +43,7 @@
4444 $this->addOption( 'quick', 'Skip 5 second countdown before starting' );
4545 $this->addOption( 'doshared', 'Also update shared tables' );
4646 $this->addOption( 'nopurge', 'Do not purge the objectcache table after updates' );
47 - $this->addOption( 'force', 'Override when $wgMiserMode disables this script' );
 47+ $this->addOption( 'force', 'Override when $wgAllowSchemaUpdates disables this script' );
4848 }
4949
5050 function getDbType() {
@@ -76,7 +76,7 @@
7777 }
7878
7979 function execute() {
80 - global $wgVersion, $wgTitle, $wgLang, $wgMiserMode;
 80+ global $wgVersion, $wgTitle, $wgLang, $wgAllowSchemaUpdates;
8181
8282 if( !$wgAllowSchemaUpdates && !$this->hasOption( 'force' ) ) {
8383 $this->error( "Do not run update.php on this wiki. If you're seeing this you should\n"

Status & tagging log