Index: trunk/phase3/maintenance/update.php |
— | — | @@ -43,7 +43,7 @@ |
44 | 44 | $this->addOption( 'quick', 'Skip 5 second countdown before starting' ); |
45 | 45 | $this->addOption( 'doshared', 'Also update shared tables' ); |
46 | 46 | $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' ); |
48 | 48 | } |
49 | 49 | |
50 | 50 | function getDbType() { |
— | — | @@ -76,9 +76,9 @@ |
77 | 77 | } |
78 | 78 | |
79 | 79 | function execute() { |
80 | | - global $wgVersion, $wgTitle, $wgLang, $wgMiserMode; |
| 80 | + global $wgVersion, $wgTitle, $wgLang, $wgAllowSchemaUpdates; |
81 | 81 | |
82 | | - if( $wgMiserMode && !$this->hasOption( 'force' ) ) { |
| 82 | + if( $wgAllowSchemaUpdates && !$this->hasOption( 'force' ) ) { |
83 | 83 | $this->error( "Do not run update.php on this wiki. If you're seeing this you should\n" |
84 | 84 | . "probably ask for some help in performing your schema updates.\n\n" |
85 | 85 | . "If you know what you are doing, you can continue with --force", true ); |
Index: trunk/phase3/includes/DefaultSettings.php |
— | — | @@ -1423,6 +1423,8 @@ |
1424 | 1424 | $wgWantedPagesThreshold = 1; |
1425 | 1425 | /** Enable slow parser functions */ |
1426 | 1426 | $wgAllowSlowParserFunctions = false; |
| 1427 | +/** Allow schema updates */ |
| 1428 | +$wgAllowSchemaUpdates = true; |
1427 | 1429 | |
1428 | 1430 | /** |
1429 | 1431 | * Do DELETE/INSERT for link updates instead of incremental |