From 8f5589250dabf67daff7a44fe6cf0db23698ab89 Mon Sep 17 00:00:00 2001 From: daniel Date: Thu, 26 Apr 2012 13:25:52 +0200 Subject: [PATCH] removed use of getNativeData() from WikiPage --- includes/WikiPage.php | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/includes/WikiPage.php b/includes/WikiPage.php index 658d7fad27..b6f9673a3e 100644 --- a/includes/WikiPage.php +++ b/includes/WikiPage.php @@ -489,20 +489,6 @@ class WikiPage extends Page { return $this->getText( Revision::RAW ); } - /** - * Get the content of the current revision. No side-effects... - * - * @return Contet|false The text of the current revision - * - * @since 1.WD - */ - protected function getNativeData() { #FIXME: examine all uses carefully! caller must be aware of content model! - $content = $this->getContent( Revision::RAW ); - if ( !$content ) return null; - - return $content->getNativeData(); - } - /** * @return string MW timestamp of last article revision */ @@ -985,7 +971,7 @@ class WikiPage extends Page { if ( $this->mTitle->getNamespace() == NS_MEDIAWIKI ) { if ( $this->mTitle->exists() ) { - $text = $this->getNativeData(); #FIXME: may not be a string. check Content model! + $text = ContentHandler::getContentText( $this->getContent() ); } else { $text = false; } -- 2.20.1