$wgLang is already marked as global at the top.
authorPlatonides <platonides@users.mediawiki.org>
Sun, 25 Jul 2010 17:48:48 +0000 (17:48 +0000)
committerPlatonides <platonides@users.mediawiki.org>
Sun, 25 Jul 2010 17:48:48 +0000 (17:48 +0000)
includes/Preferences.php

index bd7511a..60ba20f 100644 (file)
@@ -471,8 +471,6 @@ class Preferences {
 
                $selectedSkin = $user->getOption( 'skin' );
                if ( in_array( $selectedSkin, array( 'cologneblue', 'standard' ) ) ) {
-                       global $wgLang;
-
                        $settings = array_flip( $wgLang->getQuickbarSettings() );
 
                        $defaultPreferences['quickbar'] = array(