summaryrefslogtreecommitdiff
path: root/maintenance/update.php
diff options
context:
space:
mode:
authorPierre Schmitz <pierre@archlinux.de>2012-01-12 13:42:29 +0100
committerPierre Schmitz <pierre@archlinux.de>2012-01-12 13:42:29 +0100
commitba0fc4fa20067528effd4802e53ceeb959640825 (patch)
tree4f62217349d3afa39dbba3f7e19dac0aecb344f6 /maintenance/update.php
parentca32f08966f1b51fcb19460f0996bb0c4048e6fe (diff)
Update to MediaWiki 1.18.1
Diffstat (limited to 'maintenance/update.php')
-rw-r--r--maintenance/update.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/maintenance/update.php b/maintenance/update.php
index e4a594f6..6173befd 100644
--- a/maintenance/update.php
+++ b/maintenance/update.php
@@ -43,7 +43,7 @@ class UpdateMediaWiki extends Maintenance {
$this->addOption( 'quick', 'Skip 5 second countdown before starting' );
$this->addOption( 'doshared', 'Also update shared tables' );
$this->addOption( 'nopurge', 'Do not purge the objectcache table after updates' );
- $this->addOption( 'force', 'Override when $wgMiserMode disables this script' );
+ $this->addOption( 'force', 'Override when $wgAllowSchemaUpdates disables this script' );
}
function getDbType() {
@@ -76,9 +76,9 @@ class UpdateMediaWiki extends Maintenance {
}
function execute() {
- global $wgVersion, $wgTitle, $wgLang, $wgMiserMode;
+ global $wgVersion, $wgTitle, $wgLang, $wgAllowSchemaUpdates;
- if( $wgMiserMode && !$this->hasOption( 'force' ) ) {
+ if( !$wgAllowSchemaUpdates && !$this->hasOption( 'force' ) ) {
$this->error( "Do not run update.php on this wiki. If you're seeing this you should\n"
. "probably ask for some help in performing your schema updates.\n\n"
. "If you know what you are doing, you can continue with --force", true );