r57055 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r57054‎ | r57055 | r57056 >
Date:13:34, 29 September 2009
Author:demon
Status:ok
Tags:
Comment:
(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
Modified paths:
  • /trunk/phase3/RELEASE-NOTES (modified) (history)
  • /trunk/phase3/includes/EditPage.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/EditPage.php
@@ -138,7 +138,7 @@
139139 $wgMessageCache->loadAllMessages( $lang );
140140 $text = wfMsgGetKey( $message, false, $lang, false );
141141 if( wfEmptyMsg( $message, $text ) )
142 - $text = '';
 142+ $text = $this->getPreloadedText( $preload );
143143 } else {
144144 # If requested, preload some text.
145145 $text = $this->getPreloadedText( $preload );
Index: trunk/phase3/RELEASE-NOTES
@@ -544,6 +544,7 @@
545545 * Password fields built with HTMLForm now still have the type="password" attribute
546546 if $wgHtml5=false.
547547 * (bug 20860) Entries on Special:Allmessages now have direct "edit" link
 548+* (bug 20836) Preload now works for MediaWiki namespace
548549
549550 == API changes in 1.16 ==
550551

Status & tagging log