From: Tobias Date: Mon, 17 Aug 2009 14:04:06 +0000 (+0000) Subject: Show summary preview also on diff - useful for editing and takes up almost no space X-Git-Tag: 1.31.0-rc.0~40259 X-Git-Url: http://git.cyclocoop.org/ecrire?a=commitdiff_plain;h=37f22616966dafee2a56a79bd9701554096b780c;p=lhc%2Fweb%2Fwiklou.git Show summary preview also on diff - useful for editing and takes up almost no space --- diff --git a/includes/EditPage.php b/includes/EditPage.php index 809ea6470e..5a4031b02e 100644 --- a/includes/EditPage.php +++ b/includes/EditPage.php @@ -1415,7 +1415,7 @@ class EditPage { $editsummary = "
\n"; global $wgParser; $formattedSummary = wfMsgForContent( 'newsectionsummary', $wgParser->stripSectionName( $this->summary ) ); - $subjectpreview = $summarytext && $this->preview ? + $subjectpreview = $summarytext && ( $this->preview || $this->diff ) ? "
". wfMsgExt('subject-preview', 'parseinline') . $sk->commentBlock( $formattedSummary, $this->mTitle, true )."
\n" : ''; $summarypreview = ''; } else { @@ -1442,7 +1442,7 @@ class EditPage { . $editsummary . '
'; $summarypreview = ''; - if ( $summarytext && $this->preview ) { + if ( $summarytext && ( $this->preview || $this->diff ) ) { $summarypreview = Xml::tags( 'div', array( 'class' => 'mw-summary-preview' ),