Allow cascading protection to be turned off without changing other settings
authorAlex Z <mrzman@users.mediawiki.org>
Sun, 14 Sep 2008 01:11:54 +0000 (01:11 +0000)
committerAlex Z <mrzman@users.mediawiki.org>
Sun, 14 Sep 2008 01:11:54 +0000 (01:11 +0000)
includes/ProtectionForm.php

index c30adad..e78fa3d 100644 (file)
@@ -211,7 +211,7 @@ class ProtectionForm {
                global $wgGroupPermissions;
 
                $edit_restriction = $this->mRestrictions['edit'];
-
+               $this->mCascade = $wgRequest->getBool( 'mwProtect-cascade' );
                if ($this->mCascade && ($edit_restriction != 'protect') &&
                        !(isset($wgGroupPermissions[$edit_restriction]['protect']) && $wgGroupPermissions[$edit_restriction]['protect'] ) )
                        $this->mCascade = false;