From d50199ddce34c314f81e0d6d753826d7be88d6a4 Mon Sep 17 00:00:00 2001 From: umherirrender Date: Sun, 25 Aug 2013 17:06:49 +0200 Subject: [PATCH] Add class around diff-empty and add it as notice Add the moment the message is added within a class=diff-multi, which is not true. Bug: 53168 Follow-Up: I458fb688b0001fb674ece65b3fdabf56fc658a29 Change-Id: Ic3040ceca4ff1459181c84f041490e9e72b12802 --- includes/diff/DifferenceEngine.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/includes/diff/DifferenceEngine.php b/includes/diff/DifferenceEngine.php index b102bfc21a..5444bc14c9 100644 --- a/includes/diff/DifferenceEngine.php +++ b/includes/diff/DifferenceEngine.php @@ -612,10 +612,7 @@ class DifferenceEngine extends ContextSource { $multi = $this->getMultiNotice(); // Display a message when the diff is empty if ( $body === '' ) { - if ( $multi !== '' ) { - $multi .= '
'; - } - $multi .= $this->msg( 'diff-empty' )->parse(); + $notice .= '
' . $this->msg( 'diff-empty' )->parse() . "
\n"; } return $this->addHeader( $body, $otitle, $ntitle, $multi, $notice ); } -- 2.20.1