Index: trunk/phase3/includes/EditPage.php |
— | — | @@ -1246,13 +1246,15 @@ |
1247 | 1247 | # For a bit more sophisticated detection of blank summaries, hash the |
1248 | 1248 | # automatic one and pass that in the hidden field wpAutoSummary. |
1249 | 1249 | $summaryhiddens = ''; |
1250 | | - if( $this->missingSummary ) $summaryhiddens .= wfHidden( 'wpIgnoreBlankSummary', true ); |
| 1250 | + if( $this->missingSummary ) $summaryhiddens .= Xml::hidden( 'wpIgnoreBlankSummary', true ); |
1251 | 1251 | $autosumm = $this->autoSumm ? $this->autoSumm : md5( $this->summary ); |
1252 | | - $summaryhiddens .= wfHidden( 'wpAutoSummary', $autosumm ); |
| 1252 | + $summaryhiddens .= Xml::hidden( 'wpAutoSummary', $autosumm ); |
1253 | 1253 | if( $this->section == 'new' ) { |
1254 | 1254 | $commentsubject="<span id='wpSummaryLabel'><label for='wpSummary'>{$subject}:</label></span>\n<div class='editOptions'>\n<input tabindex='1' type='text' value=\"$summarytext\" name='wpSummary' id='wpSummary' maxlength='200' size='60' />{$summaryhiddens}<br />"; |
1255 | 1255 | $editsummary = ''; |
1256 | | - $subjectpreview = $summarytext && $this->preview ? "<div class=\"mw-summary-preview\">".wfMsg('subject-preview').':'.$sk->commentBlock( $this->summary, $this->mTitle )."</div>\n" : ''; |
| 1256 | + global $wgParser; |
| 1257 | + $formattedSummary = wfMsgForContent( 'newsectionsummary', $wgParser->stripSectionName( $this->summary ) ); |
| 1258 | + $subjectpreview = $summarytext && $this->preview ? "<div class=\"mw-summary-preview\">".wfMsg('subject-preview').':'.$sk->commentBlock( $formattedSummary, $this->mTitle, true )."</div>\n" : ''; |
1257 | 1259 | $summarypreview = ''; |
1258 | 1260 | } else { |
1259 | 1261 | $commentsubject = ''; |