From 3a4183931c05147e617b3a2efa691e7f08fa5f30 Mon Sep 17 00:00:00 2001 From: Alex Z Date: Sun, 14 Sep 2008 01:11:54 +0000 Subject: [PATCH] Allow cascading protection to be turned off without changing other settings --- includes/ProtectionForm.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/ProtectionForm.php b/includes/ProtectionForm.php index c30adad7ad..e78fa3deed 100644 --- a/includes/ProtectionForm.php +++ b/includes/ProtectionForm.php @@ -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; -- 2.20.1