fix broken sidebar
authorJens Frank <jeluf@users.mediawiki.org>
Sat, 19 Mar 2005 12:04:00 +0000 (12:04 +0000)
committerJens Frank <jeluf@users.mediawiki.org>
Sat, 19 Mar 2005 12:04:00 +0000 (12:04 +0000)
includes/EditPage.php

index 11e95a8..0606e2d 100644 (file)
@@ -577,8 +577,8 @@ class EditPage {
                        }
                }
                $wgOut->addHTML( '</div>' );
-               $wgOut->addHTML( '<div id="wikiDiff">' );
                if ( 'diff' == $formtype ) {
+                       $wgOut->addHTML( '<div id="wikiDiff">' );
                        require_once( 'DifferenceEngine.php' );
                        $oldtext = $this->mArticle->getContent( true );
                        $newtext = $this->textbox1;
@@ -592,6 +592,7 @@ class EditPage {
                                $wgOut->addHTML( $difftext );
                                $wgOut->addHTML( "<br style=\"clear:both;\" />\n" );
                        }
+                       $wgOut->addHTML( '</div>' );
                }