r40192 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r40191‎ | r40192 | r40193 >
Date:21:36, 28 August 2008
Author:demon
Status:old
Tags:
Comment:
Remove second declaration of EditPage::showPreview().
Modified paths:
  • /trunk/phase3/includes/EditPage.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/EditPage.php
@@ -1550,27 +1550,6 @@
15511551 }
15521552
15531553 /**
1554 - * Append preview output to $wgOut.
1555 - * Includes category rendering if this is a category page.
1556 - *
1557 - * @param string $text The HTML to be output for the preview.
1558 - */
1559 - protected function showPreview( $text ) {
1560 - global $wgOut;
1561 -
1562 - $wgOut->addHTML( '<div id="wikiPreview">' );
1563 - if($this->mTitle->getNamespace() == NS_CATEGORY) {
1564 - $this->mArticle->openShowCategory();
1565 - }
1566 - wfRunHooks( 'OutputPageBeforeHTML',array( &$wgOut, &$text ) );
1567 - $wgOut->addHTML( $text );
1568 - if($this->mTitle->getNamespace() == NS_CATEGORY) {
1569 - $this->mArticle->closeShowCategory();
1570 - }
1571 - $wgOut->addHTML( '</div>' );
1572 - }
1573 -
1574 - /**
15751554 * Live Preview lets us fetch rendered preview page content and
15761555 * add it to the page without refreshing the whole page.
15771556 * If not supported by the browser it will fall through to the normal form

Status & tagging log