From: Chad Horohoe Date: Thu, 28 Aug 2008 21:36:39 +0000 (+0000) Subject: Remove second declaration of EditPage::showPreview(). X-Git-Tag: 1.31.0-rc.0~45577 X-Git-Url: http://git.cyclocoop.org/%28?a=commitdiff_plain;h=db843ebfd6549a395e092aa81ea57aa93988996e;p=lhc%2Fweb%2Fwiklou.git Remove second declaration of EditPage::showPreview(). --- 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.