From: Reedy Date: Thu, 19 Jan 2017 01:49:07 +0000 (+0000) Subject: Article::getContent() was removed X-Git-Tag: 1.31.0-rc.0~4288 X-Git-Url: http://git.cyclocoop.org/?a=commitdiff_plain;h=61f9600b937998db252bbec69341ac8df06a669c;p=lhc%2Fweb%2Fwiklou.git Article::getContent() was removed Bug: T154498 Change-Id: I27956d494cf19d1204988807130b43f77186db9b --- diff --git a/RELEASE-NOTES-1.29 b/RELEASE-NOTES-1.29 index e4049403b5..cbfd124b99 100644 --- a/RELEASE-NOTES-1.29 +++ b/RELEASE-NOTES-1.29 @@ -201,6 +201,7 @@ changes to languages because of Phabricator reports. Use ContentHandlerDefaultModelFor instead. * Hook TitleIsWikitextPage (deprecated in 1.21) was removed. Use ContentHandlerDefaultModelFor instead. +* Article::getContent (deprecated in 1.21) was removed. == Compatibility == diff --git a/includes/page/Article.php b/includes/page/Article.php index a33c84f7e0..b8be29425c 100644 --- a/includes/page/Article.php +++ b/includes/page/Article.php @@ -197,24 +197,6 @@ class Article implements Page { $this->mPage->clear(); } - /** - * Note that getContent does not follow redirects anymore. - * If you need to fetch redirectable content easily, try - * the shortcut in WikiPage::getRedirectTarget() - * - * This function has side effects! Do not use this function if you - * only want the real revision text if any. - * - * @deprecated since 1.21; use WikiPage::getContent() instead - * - * @return string Return the text of this revision - */ - public function getContent() { - wfDeprecated( __METHOD__, '1.21' ); - $content = $this->getContentObject(); - return ContentHandler::getContentText( $content ); - } - /** * Returns a Content object representing the pages effective display content, * not necessarily the revision's content!