From: Andrew Garrett Date: Mon, 10 Sep 2007 05:28:09 +0000 (+0000) Subject: * (bug 11211) Pass, as a parameter to the protectedpagetext interface message, the... X-Git-Tag: 1.31.0-rc.0~51453 X-Git-Url: http://git.cyclocoop.org/fichier?a=commitdiff_plain;h=ea76fb474e626ec93bf03eafe9eb1fb3ecd3dd0f;p=lhc%2Fweb%2Fwiklou.git * (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'. --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 31f517f709..2a5da951f8 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 63ec737cf9..a8e6ff7fb1 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 ); } }