Add class around diff-empty and add it as notice
[lhc/web/wiklou.git] / 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 );
                }