Removed $wgEnableCascadingProtection. It was a quite pointless configuration setting which was not even properly implemented. Cascading protection has been always possible regardless of this configuration setting.

This commit is contained in:
Bryan Tong Minh 2008-06-11 21:36:07 +00:00
parent e15ca24825
commit 65e1c0cdeb
4 changed files with 6 additions and 12 deletions

View 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 ===

View 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)
*/

View 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">' .

View 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 ) {