| Index: branches/preferences-work/phase3/includes/specials/SpecialPreferences.php |
| — | — | @@ -6,7 +6,7 @@ |
| 7 | 7 | } |
| 8 | 8 | |
| 9 | 9 | function execute( $par ) { |
| 10 | | - global $wgOut, $wgUser, $wgRequest, $wgTitle; |
| | 10 | + global $wgOut, $wgUser, $wgRequest; |
| 11 | 11 | |
| 12 | 12 | $wgOut->setPageTitle( wfMsg( 'preferences' ) ); |
| 13 | 13 | $wgOut->setArticleRelated( false ); |
| — | — | @@ -16,7 +16,7 @@ |
| 17 | 17 | $wgOut->disallowUserJs(); # Prevent hijacked user scripts from sniffing passwords etc. |
| 18 | 18 | |
| 19 | 19 | if ( $wgUser->isAnon() ) { |
| 20 | | - $wgOut->showErrorPage( 'prefsnologin', 'prefsnologintext', array($wgTitle->getPrefixedDBkey()) ); |
| | 20 | + $wgOut->showErrorPage( 'prefsnologin', 'prefsnologintext', array($this->getTitle()->getPrefixedDBkey()) ); |
| 21 | 21 | return; |
| 22 | 22 | } |
| 23 | 23 | if ( wfReadOnly() ) { |