diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 31f517f709a..2a5da951f82 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -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 === diff --git a/includes/Title.php b/includes/Title.php index 63ec737cf91..a8e6ff7fb1d 100644 --- a/includes/Title.php +++ b/includes/Title.php @@ -1169,7 +1169,7 @@ class Title { $right = 'protect'; } if( '' != $right && !$user->isAllowed( $right ) ) { - $errors[] = array( 'protectedpagetext' ); + $errors[] = array( 'protectedpagetext', $right ); } }