r25713 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r25712‎ | r25713 | r25714 >
Date:05:28, 10 September 2007
Author:werdna
Status:old
Tags:
Comment:
* (bug 11211) Pass, as a parameter to the protectedpagetext interface message, the level of protection.

Note that this is AFTER 'sysop' is rewritten to 'protect', so the parameter passed for full-protected pages on wikimedia projects will be 'protect', not 'sysop'.
Modified paths:
  • /trunk/phase3/RELEASE-NOTES (modified) (history)
  • /trunk/phase3/includes/Title.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/Title.php
@@ -1169,7 +1169,7 @@
11701170 $right = 'protect';
11711171 }
11721172 if( '' != $right && !$user->isAllowed( $right ) ) {
1173 - $errors[] = array( 'protectedpagetext' );
 1173+ $errors[] = array( 'protectedpagetext', $right );
11741174 }
11751175 }
11761176
Index: trunk/phase3/RELEASE-NOTES
@@ -34,6 +34,8 @@
3535 * Fix inconsistent section edit link size for some browsers.
3636 * (bug 5387) Block log items on RecentChanges don't make use of possible
3737 translations
 38+* (bug 11211) Pass, as a parameter to the protectedpagetext interface
 39+ message, the level of protection.
3840
3941 === API changes in 1.12 ===
4042

Follow-up revisions

RevisionCommit summaryAuthorDate
r25754Merged revisions 25607-25751 via svnmerge from...david23:02, 10 September 2007

Status & tagging log