r40802 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r40801‎ | r40802 | r40803 >
Date:01:11, 14 September 2008
Author:mrzman
Status:old
Tags:
Comment:
Allow cascading protection to be turned off without changing other settings
Modified paths:
  • /trunk/phase3/includes/ProtectionForm.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/ProtectionForm.php
@@ -211,7 +211,7 @@
212212 global $wgGroupPermissions;
213213
214214 $edit_restriction = $this->mRestrictions['edit'];
215 -
 215+ $this->mCascade = $wgRequest->getBool( 'mwProtect-cascade' );
216216 if ($this->mCascade && ($edit_restriction != 'protect') &&
217217 !(isset($wgGroupPermissions[$edit_restriction]['protect']) && $wgGroupPermissions[$edit_restriction]['protect'] ) )
218218 $this->mCascade = false;