Remove second declaration of EditPage::showPreview().
authorChad Horohoe <demon@users.mediawiki.org>
Thu, 28 Aug 2008 21:36:39 +0000 (21:36 +0000)
committerChad Horohoe <demon@users.mediawiki.org>
Thu, 28 Aug 2008 21:36:39 +0000 (21:36 +0000)
includes/EditPage.php

index a7892f2..c71942e 100644 (file)
@@ -1549,27 +1549,6 @@ END
                }
        }
 
-       /**
-        * Append preview output to $wgOut.
-        * Includes category rendering if this is a category page.
-        *
-        * @param string $text The HTML to be output for the preview.
-        */
-       protected function showPreview( $text ) {
-               global $wgOut;
-
-               $wgOut->addHTML( '<div id="wikiPreview">' );
-               if($this->mTitle->getNamespace() == NS_CATEGORY) {
-                       $this->mArticle->openShowCategory();
-               }
-               wfRunHooks( 'OutputPageBeforeHTML',array( &$wgOut, &$text ) );
-               $wgOut->addHTML( $text );
-               if($this->mTitle->getNamespace() == NS_CATEGORY) {
-                       $this->mArticle->closeShowCategory();
-               }
-               $wgOut->addHTML( '</div>' );
-       }
-
        /**
         * Live Preview lets us fetch rendered preview page content and
         * add it to the page without refreshing the whole page.