* (bug 11211) Pass, as a parameter to the protectedpagetext interface message, the...
authorAndrew Garrett <werdna@users.mediawiki.org>
Mon, 10 Sep 2007 05:28:09 +0000 (05:28 +0000)
committerAndrew Garrett <werdna@users.mediawiki.org>
Mon, 10 Sep 2007 05:28:09 +0000 (05:28 +0000)
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'.

RELEASE-NOTES
includes/Title.php

index 31f517f..2a5da95 100644 (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 ===
 
index 63ec737..a8e6ff7 100644 (file)
@@ -1169,7 +1169,7 @@ class Title {
                                $right = 'protect';
                        }
                        if( '' != $right && !$user->isAllowed( $right ) ) {
-                               $errors[] = array( 'protectedpagetext' );
+                               $errors[] = array( 'protectedpagetext', $right );
                        }
                }