From 4aa6b6dd925382bb6c0a8681060f6146b0ea5da4 Mon Sep 17 00:00:00 2001 From: Chad Horohoe Date: Tue, 29 Sep 2009 13:34:59 +0000 Subject: [PATCH] (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 --- RELEASE-NOTES | 1 + includes/EditPage.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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 ); -- 2.20.1