r97156 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r97155‎ | r97156 | r97157 >
Date:15:04, 15 September 2011
Author:ialex
Status:ok
Tags:
Comment:
Use local context instead of global variables
Modified paths:
  • /trunk/phase3/includes/specials/SpecialWithoutinterwiki.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/specials/SpecialWithoutinterwiki.php
@@ -35,8 +35,8 @@
3636 }
3737
3838 function execute( $par ) {
39 - global $wgRequest;
40 - $this->prefix = Title::capitalize( $wgRequest->getVal( 'prefix', $par ), NS_MAIN );
 39+ $this->prefix = Title::capitalize(
 40+ $this->getRequest()->getVal( 'prefix', $par ), NS_MAIN );
4141 parent::execute( $par );
4242 }
4343

Follow-up revisions

RevisionCommit summaryAuthorDate
r97173Merged revisions 97087,97091-97092,97094,97096-97098,97100-97101,97103,97136,...dantman16:19, 15 September 2011

Status & tagging log