Removed $wgEnableCascadingProtection. It was a quite pointless configuration setting...
authorBryan Tong Minh <btongminh@users.mediawiki.org>
Wed, 11 Jun 2008 21:36:07 +0000 (21:36 +0000)
committerBryan Tong Minh <btongminh@users.mediawiki.org>
Wed, 11 Jun 2008 21:36:07 +0000 (21:36 +0000)
RELEASE-NOTES
includes/DefaultSettings.php
includes/ProtectionForm.php
includes/Title.php

index f19dfad..cb1800b 100644 (file)
@@ -56,7 +56,10 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
   $wgGroupPermissions[]['noratelimit']. The former still works, however.
 * New $wgGroupPermissions option 'move-subpages' added to control bulk-moving
   subpages along with pages.  Assigned to 'user' and 'sysop' by default.
-* New $wgRC2UDPOmitBots allows user to omit bot edits from UDP output. Default: false
+* New $wgRC2UDPOmitBots allows user to omit bot edits from UDP output. 
+  Default: false
+* Removed $wgEnableCascadingProtection option. Disabling cascading protection
+  is no longer possible. 
 
 === New features in 1.13 ===
 
index 748aa5e..100965d 100644 (file)
@@ -3149,11 +3149,6 @@ $wgBreakFrames = false;
  */
 $wgDisableQueryPageUpdate = false;
 
-/**
- * Set this to false to disable cascading protection
- */
-$wgEnableCascadingProtection = true;
-
 /**
  * Disable output compression (enabled by default if zlib is available)
  */
index b77891c..931c9e9 100644 (file)
@@ -265,8 +265,7 @@ class ProtectionForm {
                        Xml::openElement( 'table', array( 'id' => 'mw-protect-table2' ) ) .
                        Xml::openElement( 'tbody' );
 
-               global $wgEnableCascadingProtection;
-               if( $wgEnableCascadingProtection && $this->mTitle->exists() ) {
+               if( $this->mTitle->exists() ) {
                        $out .= '<tr>
                                        <td></td>
                                        <td class="mw-input">' .
index 49c0780..dad2bc4 100644 (file)
@@ -1611,16 +1611,13 @@ class Title {
         * The restriction array is an array of each type, each of which contains an array of unique groups
         */
        public function getCascadeProtectionSources( $get_pages = true ) {
-               global $wgEnableCascadingProtection, $wgRestrictionTypes;
+               global $wgRestrictionTypes;
 
                # Define our dimension of restrictions types
                $pagerestrictions = array();
                foreach( $wgRestrictionTypes as $action )
                        $pagerestrictions[$action] = array();
 
-               if (!$wgEnableCascadingProtection)
-                       return array( false, $pagerestrictions );
-
                if ( isset( $this->mCascadeSources ) && $get_pages ) {
                        return array( $this->mCascadeSources, $this->mCascadingRestrictions );
                } else if ( isset( $this->mHasCascadingRestrictions ) && !$get_pages ) {