r91249 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r91248‎ | r91249 | r91250 >
Date:02:58, 1 July 2011
Author:reedy
Status:ok
Tags:
Comment:
Remove unused globals
Modified paths:
  • /trunk/phase3/includes/Preferences.php (modified) (history)
  • /trunk/phase3/includes/specials/SpecialUndelete.php (modified) (history)
  • /trunk/phase3/includes/specials/SpecialUserlogin.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/specials/SpecialUndelete.php
@@ -741,7 +741,7 @@
742742 * @return bool
743743 */
744744 private function showList( $result ) {
745 - global $wgLang, $wgUser, $wgOut;
 745+ global $wgLang, $wgOut;
746746
747747 if( $result->numRows() == 0 ) {
748748 $wgOut->addWikiMsg( 'undelete-no-results' );
Index: trunk/phase3/includes/specials/SpecialUserlogin.php
@@ -1179,7 +1179,6 @@
11801180 * @param $lang Language code
11811181 */
11821182 function makeLanguageSelectorLink( $text, $lang ) {
1183 - global $wgUser;
11841183 $self = SpecialPage::getTitleFor( 'Userlogin' );
11851184 $attr = array( 'uselang' => $lang );
11861185 if( $this->mType == 'signup' ) {
Index: trunk/phase3/includes/Preferences.php
@@ -786,7 +786,7 @@
787787 * @param $defaultPreferences Array
788788 */
789789 static function rcPreferences( $user, &$defaultPreferences ) {
790 - global $wgRCMaxAge, $wgUseRCPatrol, $wgLang;
 790+ global $wgRCMaxAge, $wgLang;
791791
792792 ## RecentChanges #####################################
793793 $defaultPreferences['rcdays'] = array(

Status & tagging log