r31247 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r31246‎ | r31247 | r31248 >
Date:10:36, 25 February 2008
Author:huji
Status:old
Tags:
Comment:
(bug 13137) Bots to edit protected pages
Modified paths:
  • /trunk/phase3/RELEASE-NOTES (modified) (history)
  • /trunk/phase3/includes/DefaultSettings.php (modified) (history)
  • /trunk/phase3/includes/Title.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/Title.php
@@ -1195,7 +1195,7 @@
11961196 foreach( $this->getRestrictions($action) as $right ) {
11971197 // Backwards compatibility, rewrite sysop -> protect
11981198 if ( $right == 'sysop' ) {
1199 - $right = 'protect';
 1199+ $right = 'editprotected';
12001200 }
12011201 if( '' != $right && !$user->isAllowed( $right ) ) {
12021202 $errors[] = array( 'protectedpagetext', $right );
Index: trunk/phase3/includes/DefaultSettings.php
@@ -1132,6 +1132,7 @@
11331133 $wgGroupPermissions['sysop']['patrol'] = true;
11341134 $wgGroupPermissions['sysop']['autopatrol'] = true;
11351135 $wgGroupPermissions['sysop']['protect'] = true;
 1136+$wgGroupPermissions['sysop']['editprotected'] = true;
11361137 $wgGroupPermissions['sysop']['proxyunbannable'] = true;
11371138 $wgGroupPermissions['sysop']['rollback'] = true;
11381139 $wgGroupPermissions['sysop']['trackback'] = true;
Index: trunk/phase3/RELEASE-NOTES
@@ -37,6 +37,7 @@
3838 * (bug 13084) Increase size of source/destination filename fields in upload form
3939 * (bug 13115) rebuildrecentchanges should print the current value of $wgRCMaxAge
4040 * (bug 13132) Unable to unprotect pages protected with earlier versions of MediaWiki
 41+* (bug 13137) Bots to edit protected pages
4142
4243 === API changes in 1.13 ===
4344

Follow-up revisions

RevisionCommit summaryAuthorDate
r31462Partially reverting r31247:...huji19:26, 2 March 2008
r32164(bug 13137) Bots to edit protected pages...huji11:23, 19 March 2008

Status & tagging log