From db843ebfd6549a395e092aa81ea57aa93988996e Mon Sep 17 00:00:00 2001 From: Chad Horohoe Date: Thu, 28 Aug 2008 21:36:39 +0000 Subject: [PATCH] Remove second declaration of EditPage::showPreview(). --- includes/EditPage.php | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/includes/EditPage.php b/includes/EditPage.php index a7892f246a..c71942e6de 100644 --- a/includes/EditPage.php +++ b/includes/EditPage.php @@ -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( '
' ); - 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( '
' ); - } - /** * Live Preview lets us fetch rendered preview page content and * add it to the page without refreshing the whole page. -- 2.20.1