From: umherirrender Date: Sun, 25 Aug 2013 15:06:49 +0000 (+0200) Subject: Add class around diff-empty and add it as notice X-Git-Tag: 1.31.0-rc.0~18880^2 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/exercices/journal.php?a=commitdiff_plain;h=d50199ddce34c314f81e0d6d753826d7be88d6a4;p=lhc%2Fweb%2Fwiklou.git 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 --- 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 ); }