Merge "Slight improvements to FormSpecialPage behavior."
[lhc/web/wiklou.git] / includes / ProtectionForm.php
index 0ac8749..6f444ee 100644 (file)
@@ -386,7 +386,7 @@ class ProtectionForm {
                                'mwProtect-reason', 4 );
                        $scExpiryOptions = wfMessage( 'protect-expiry-options' )->inContentLanguage()->text();
 
-                       $showProtectOptions = ($scExpiryOptions !== '-' && !$this->disabled);
+                       $showProtectOptions = $scExpiryOptions !== '-' && !$this->disabled;
 
                        $mProtectexpiry = Xml::label(
                                wfMessage( 'protectexpiry' )->text(),
@@ -614,7 +614,7 @@ class ProtectionForm {
        }
 
        function buildCleanupScript() {
-               global $wgRestrictionLevels, $wgCascadingRestrictionLevels, $wgOut;
+               global $wgCascadingRestrictionLevels, $wgOut;
 
                $cascadeableLevels = $wgCascadingRestrictionLevels;
                $options = array(