Add $wgSemiprotectedRestrictionLevels
authorBrad Jorsch <bjorsch@wikimedia.org>
Fri, 18 Oct 2013 14:54:58 +0000 (10:54 -0400)
committerTim Starling <tstarling@wikimedia.org>
Wed, 23 Oct 2013 23:19:25 +0000 (23:19 +0000)
commit6e4a46c315eff8b2dd3b03033ab9988b223c4c41
tree90f6cadf4a6ec4773975300e97ee4ae556d5810e
parentcd6bc6116bcf6a98d4f1d242734172c3dcf450b1
Add $wgSemiprotectedRestrictionLevels

It's possible that a wiki could introduce new protection levels that
should be considered "semiprotected". For example, if an
"emailconfirmed" protection level were added and an appropriate entry
were made in $wgAutopromote, that might be considered semi-protection
since anyone can automatically gain the ability to edit those pages
merely by setting and confirming their email address.

The most straightforward way to take care of this is to add a config
variable to specify which protection levels are considered
"semiprotected". So let's do that.

Also, let's take the opportunity to make
$title->isSemiProtected( 'create' ) works correctly.

Bug: 43462
Change-Id: Ic9db6ff6cbd84bd9734be09efbea5a5891197fa0
includes/DefaultSettings.php
includes/Title.php