Add class around diff-empty and add it as notice
authorumherirrender <umherirrender_de.wp@web.de>
Sun, 25 Aug 2013 15:06:49 +0000 (17:06 +0200)
committerumherirrender <umherirrender_de.wp@web.de>
Sun, 25 Aug 2013 15:06:49 +0000 (17:06 +0200)
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

index b102bfc..5444bc1 100644 (file)
@@ -612,10 +612,7 @@ class DifferenceEngine extends ContextSource {
                        $multi = $this->getMultiNotice();
                        // Display a message when the diff is empty
                        if ( $body === '' ) {
-                               if ( $multi !== '' ) {
-                                       $multi .= '<br />';
-                               }
-                               $multi .= $this->msg( 'diff-empty' )->parse();
+                               $notice .= '<div class="mw-diff-empty">' . $this->msg( 'diff-empty' )->parse() . "</div>\n";
                        }
                        return $this->addHeader( $body, $otitle, $ntitle, $multi, $notice );
                }