From 37f22616966dafee2a56a79bd9701554096b780c Mon Sep 17 00:00:00 2001 From: Tobias Date: Mon, 17 Aug 2009 14:04:06 +0000 Subject: [PATCH] Show summary preview also on diff - useful for editing and takes up almost no space --- includes/EditPage.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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' ), -- 2.20.1