Remove the globals.
authorChad Horohoe <demon@users.mediawiki.org>
Tue, 19 May 2009 16:10:36 +0000 (16:10 +0000)
committerChad Horohoe <demon@users.mediawiki.org>
Tue, 19 May 2009 16:10:36 +0000 (16:10 +0000)
includes/specials/SpecialBlockip.php

index 00c2e18..9d5dd29 100644 (file)
@@ -46,7 +46,7 @@ class IPBlockForm {
        const HIDEUSER_CONTRIBLIMIT = 1000;
 
        public function __construct( $par ) {
-               global $wgRequest, $wgUser, $wgBlockAllowsUTEdit, $wgSysopEmailBans, $wgEnableUserEmail;
+               global $wgRequest, $wgUser, $wgBlockAllowsUTEdit;
 
                $this->BlockAddress = $wgRequest->getVal( 'wpBlockAddress', $wgRequest->getVal( 'ip', $par ) );
                $this->BlockAddress = strtr( $this->BlockAddress, '_', ' ' );