has been blocked more than 10 times. Patch by Matt Johnston.
* (bug 12678) Skins don't show Upload link if the user isn't allowed to upload.
* Fixed incorrect usage of DB_LAST in Special:Export. Deprecated DB_LAST.
+* 11119 {{grammar}} broken in noarticletext(anon) when ui lang != content lang
=== API changes in 1.14 ===
* @return Return the text of this revision
*/
function getContent() {
- global $wgUser, $wgOut, $wgMessageCache;
+ global $wgOut, $wgMessageCache;
wfProfileIn( __METHOD__ );
if ( $this->mTitle->getNamespace() == NS_MEDIAWIKI ) {
$wgMessageCache->loadAllMessages();
- $ret = wfMsgWeirdKey ( $this->mTitle->getText() ) ;
+ $ret = wfMsgWeirdKey( $this->mTitle->getText() );
+ return "<div class='noarticletext'>\n$ret\n</div>";
} else {
- $ret = wfMsg( $wgUser->isLoggedIn() ? 'noarticletext' : 'noarticletextanon' );
+ return $this->getNoSuchPageText();
}
-
- return "<div class='noarticletext'>\n$ret\n</div>";
} else {
$this->loadContent();
wfProfileOut( __METHOD__ );
}
}
+ /*
+ * HACK HACK! We pre-parse them with parsemag to get GRAMMAR working right.
+ * It should be safe to do this and then do the full parse.
+ */
+ function getNoSuchPageText() {
+ global $wgUser;
+ if ( $wgUser->isLoggedIn() ) {
+ $text = wfMsgExt( 'noarticletext', 'parsemag' );
+ } else {
+ $text = wfMsgExt( 'noarticletextanon', 'parsemag' );
+ }
+ return "<div class='noarticletext'>\n$text\n</div>";
+ }
+
/**
* This function returns the text of a section, specified by a number ($section).
* A section is text under a heading like == Heading == or \<h1\>Heading\</h1\>, or