From: Alexandre Emsenhuber Date: Thu, 25 Dec 2008 15:38:09 +0000 (+0000) Subject: oops, forgot summary-preview :( X-Git-Tag: 1.31.0-rc.0~43779 X-Git-Url: http://git.cyclocoop.org/data/%24self?a=commitdiff_plain;h=53a1c2d23c122fa8ff058a4f760d1acc79f11d12;p=lhc%2Fweb%2Fwiklou.git oops, forgot summary-preview :( --- diff --git a/includes/EditPage.php b/includes/EditPage.php index 42dd62b61e..2300ffdbb8 100644 --- a/includes/EditPage.php +++ b/includes/EditPage.php @@ -1327,7 +1327,6 @@ class EditPage { if ( $this->missingSummary ) $summaryhiddens .= Xml::hidden( 'wpIgnoreBlankSummary', true ); $autosumm = $this->autoSumm ? $this->autoSumm : md5( $this->summary ); $summaryhiddens .= Xml::hidden( 'wpAutoSummary', $autosumm ); - $subjectPreviewMsg = wfMsgExt( 'subject-preview', array( 'escapenoentities' ) ); if ( $this->section == 'new' ) { $commentsubject = "\n" . "" . @@ -1336,7 +1335,8 @@ class EditPage { global $wgParser; $formattedSummary = wfMsgForContent( 'newsectionsummary', $wgParser->stripSectionName( $this->summary ) ); $subjectpreview = $summarytext && $this->preview ? - "
" . $subjectPreviewMsg . $sk->commentBlock( $formattedSummary, $this->mTitle, true ) . "
\n" : ''; + "
" . wfMsgExt( 'subject-preview', array( 'escapenoentities' ) ) . + $sk->commentBlock( $formattedSummary, $this->mTitle, true ) . "
\n" : ''; $summarypreview = ''; } else { $commentsubject = ''; @@ -1345,7 +1345,8 @@ class EditPage { "{$summaryhiddens}
"; $subjectpreview = ''; $summarypreview = $summarytext && $this->preview ? - "
" . $subjectPreviewMsg . $sk->commentBlock( $this->summary, $this->mTitle ) . "
\n" : ''; + "
" . wfMsgExt( 'summary-preview', array( 'escapenoentities' ) ) . + $sk->commentBlock( $this->summary, $this->mTitle ) . "
\n" : ''; } # Set focus to the edit box on load, except on preview or diff, where it would interfere with the display diff --git a/languages/messages/MessagesEn.php b/languages/messages/MessagesEn.php index 3e50ab3362..f6148c2146 100644 --- a/languages/messages/MessagesEn.php +++ b/languages/messages/MessagesEn.php @@ -1055,7 +1055,7 @@ If you click Save again, your edit will be saved without one.", 'missingcommenttext' => 'Please enter a comment below.', 'missingcommentheader' => "'''Reminder:''' You have not provided a subject/headline for this comment. If you click Save again, your edit will be saved without one.", -'summary-preview' => 'Summary preview', +'summary-preview' => 'Summary preview:', 'subject-preview' => 'Subject/headline preview:', 'blockedtitle' => 'User is blocked', 'blockedtext' => "'''Your user name or IP address has been blocked.'''