aboutsummaryrefslogtreecommitdiffstats
path: root/maintenance/update.php
diff options
context:
space:
mode:
authorChad Horohoe <chadh@wikimedia.org>2014-03-12 18:27:58 -0700
committerChad Horohoe <chadh@wikimedia.org>2014-03-12 18:28:47 -0700
commit518fa756f2301ff2ee7890d6dc3726792252efd9 (patch)
tree07b83ec3e78336468f281a81c5b5e3f5ac3b57e7 /maintenance/update.php
parent1ba0445c127d4b152509db0d4450d29506f29b9d (diff)
downloadmediawikicore-518fa756f2301ff2ee7890d6dc3726792252efd9.tar.gz
mediawikicore-518fa756f2301ff2ee7890d6dc3726792252efd9.zip
Remove $wgTitle from all maintenance scripts
Shouldn't be needed and aren't for any core operations. If any extension relies on these $wgTitles being set in maintenance environments those extensions are broken and should be fixed. Change-Id: Ie02a5042ab96e155d783d56d5340dd0da8e3d55c
Diffstat (limited to 'maintenance/update.php')
-rw-r--r--maintenance/update.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/maintenance/update.php b/maintenance/update.php
index 85364ee3a333..8c1ad17450e5 100644
--- a/maintenance/update.php
+++ b/maintenance/update.php
@@ -83,7 +83,7 @@ class UpdateMediaWiki extends Maintenance {
}
function execute() {
- global $wgVersion, $wgTitle, $wgLang, $wgAllowSchemaUpdates;
+ global $wgVersion, $wgLang, $wgAllowSchemaUpdates;
if ( !$wgAllowSchemaUpdates && !( $this->hasOption( 'force' ) || $this->hasOption( 'schema' ) || $this->hasOption( 'noschema' ) ) ) {
$this->error( "Do not run update.php on this wiki. If you're seeing this you should\n"
@@ -106,7 +106,6 @@ class UpdateMediaWiki extends Maintenance {
}
$wgLang = Language::factory( 'en' );
- $wgTitle = Title::newFromText( "MediaWiki database updater" );
define( 'MW_UPDATER', true );