From: Chad Horohoe Date: Tue, 29 Sep 2009 13:34:59 +0000 (+0000) Subject: (bug 20836) Preload not working for MediaWiki namespace. Note this only works when... X-Git-Tag: 1.31.0-rc.0~39478 X-Git-Url: https://git.cyclocoop.org/%242?a=commitdiff_plain;h=4aa6b6dd925382bb6c0a8681060f6146b0ea5da4;p=lhc%2Fweb%2Fwiklou.git (bug 20836) Preload not working for MediaWiki namespace. Note this only works when the message doesnt exist, to emulate preload only working on non-existing pages --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 3a2e05b6a8..ed68a454ce 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -544,6 +544,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN * Password fields built with HTMLForm now still have the type="password" attribute if $wgHtml5=false. * (bug 20860) Entries on Special:Allmessages now have direct "edit" link +* (bug 20836) Preload now works for MediaWiki namespace == API changes in 1.16 == diff --git a/includes/EditPage.php b/includes/EditPage.php index 4366a37952..3a873cd762 100644 --- a/includes/EditPage.php +++ b/includes/EditPage.php @@ -138,7 +138,7 @@ class EditPage { $wgMessageCache->loadAllMessages( $lang ); $text = wfMsgGetKey( $message, false, $lang, false ); if( wfEmptyMsg( $message, $text ) ) - $text = ''; + $text = $this->getPreloadedText( $preload ); } else { # If requested, preload some text. $text = $this->getPreloadedText( $preload );