Remove unused globals
This commit is contained in:
parent
4720e1d4e3
commit
cc464e2cfb
3 changed files with 2 additions and 3 deletions
|
|
@ -786,7 +786,7 @@ class Preferences {
|
|||
* @param $defaultPreferences Array
|
||||
*/
|
||||
static function rcPreferences( $user, &$defaultPreferences ) {
|
||||
global $wgRCMaxAge, $wgUseRCPatrol, $wgLang;
|
||||
global $wgRCMaxAge, $wgLang;
|
||||
|
||||
## RecentChanges #####################################
|
||||
$defaultPreferences['rcdays'] = array(
|
||||
|
|
|
|||
|
|
@ -741,7 +741,7 @@ class SpecialUndelete extends SpecialPage {
|
|||
* @return bool
|
||||
*/
|
||||
private function showList( $result ) {
|
||||
global $wgLang, $wgUser, $wgOut;
|
||||
global $wgLang, $wgOut;
|
||||
|
||||
if( $result->numRows() == 0 ) {
|
||||
$wgOut->addWikiMsg( 'undelete-no-results' );
|
||||
|
|
|
|||
|
|
@ -1179,7 +1179,6 @@ class LoginForm extends SpecialPage {
|
|||
* @param $lang Language code
|
||||
*/
|
||||
function makeLanguageSelectorLink( $text, $lang ) {
|
||||
global $wgUser;
|
||||
$self = SpecialPage::getTitleFor( 'Userlogin' );
|
||||
$attr = array( 'uselang' => $lang );
|
||||
if( $this->mType == 'signup' ) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue