r49407 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r49406‎ | r49407 | r49408 >
Date:17:28, 11 April 2009
Author:demon
Status:ok
Tags:
Comment:
SpecialPage has the getTitle() function for just this purpose.
Modified paths:
  • /branches/preferences-work/phase3/includes/specials/SpecialPreferences.php (modified) (history)

Diff [purge]

Index: branches/preferences-work/phase3/includes/specials/SpecialPreferences.php
@@ -6,7 +6,7 @@
77 }
88
99 function execute( $par ) {
10 - global $wgOut, $wgUser, $wgRequest, $wgTitle;
 10+ global $wgOut, $wgUser, $wgRequest;
1111
1212 $wgOut->setPageTitle( wfMsg( 'preferences' ) );
1313 $wgOut->setArticleRelated( false );
@@ -16,7 +16,7 @@
1717 $wgOut->disallowUserJs(); # Prevent hijacked user scripts from sniffing passwords etc.
1818
1919 if ( $wgUser->isAnon() ) {
20 - $wgOut->showErrorPage( 'prefsnologin', 'prefsnologintext', array($wgTitle->getPrefixedDBkey()) );
 20+ $wgOut->showErrorPage( 'prefsnologin', 'prefsnologintext', array($this->getTitle()->getPrefixedDBkey()) );
2121 return;
2222 }
2323 if ( wfReadOnly() ) {

Status & tagging log