From: daniel Date: Thu, 26 Apr 2012 11:25:52 +0000 (+0200) Subject: removed use of getNativeData() from WikiPage X-Git-Tag: 1.31.0-rc.0~22097^2^2~189 X-Git-Url: http://git.cyclocoop.org/%28?a=commitdiff_plain;h=8f5589250dabf67daff7a44fe6cf0db23698ab89;p=lhc%2Fweb%2Fwiklou.git removed use of getNativeData() from WikiPage --- 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; }