* (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'.
This commit is contained in:
Andrew Garrett 2007-09-10 05:28:09 +00:00
parent c110702875
commit ea76fb474e
2 changed files with 3 additions and 1 deletions

View file

@ -34,6 +34,8 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
* Fix inconsistent section edit link size for some browsers.
* (bug 5387) Block log items on RecentChanges don't make use of possible
translations
* (bug 11211) Pass, as a parameter to the protectedpagetext interface
message, the level of protection.
=== API changes in 1.12 ===

View file

@ -1169,7 +1169,7 @@ class Title {
$right = 'protect';
}
if( '' != $right && !$user->isAllowed( $right ) ) {
$errors[] = array( 'protectedpagetext' );
$errors[] = array( 'protectedpagetext', $right );
}
}