Add class around diff-empty and add it as notice
[lhc/web/wiklou.git] / includes / diff / DifferenceEngine.php
index 6657667..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 );
                }
@@ -642,7 +639,6 @@ class DifferenceEngine extends ContextSource {
                        return false;
                }
                // Short-circuit
-               // If mOldRev is false, it means that the
                if ( $this->mOldRev === false || ( $this->mOldRev && $this->mNewRev
                        && $this->mOldRev->getID() == $this->mNewRev->getID() ) )
                {