r48026 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r48025‎ | r48026 | r48027 >
Date:17:12, 4 March 2009
Author:raymond
Status:resolved (Comments)
Tags:
Comment:
Add a linebreak so that more complex customized messages like http://de.wikipedia.org/w/index.php?title=MediaWiki:Deletedwhileediting&oldid=53909919 works again
Modified paths:
  • /trunk/phase3/includes/EditPage.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/EditPage.php
@@ -1447,7 +1447,7 @@
14481448 if ( $this->wasDeletedSinceLastEdit() ) {
14491449 if ( 'save' != $this->formtype ) {
14501450 $wgOut->wrapWikiMsg(
1451 - '<div class="error mw-deleted-while-editing">$1</div>',
 1451+ '<div class="error mw-deleted-while-editing">\n$1</div>',
14521452 'deletedwhileediting' );
14531453 } else {
14541454 // Hide the toolbar and edit area, user can click preview to get it back

Follow-up revisions

RevisionCommit summaryAuthorDate
r48050Fix for r48026: \n needs ""raymond07:04, 5 March 2009

Comments

#Comment by Simetrical (talk | contribs)   00:40, 5 March 2009

Looks broken ― '\n' doesn't work in PHP, you need to use "\n".

#Comment by Raymond (talk | contribs)   07:05, 5 March 2009

Fixed with r48050

Status & tagging log