From: Reedy Date: Sat, 8 Oct 2016 12:28:38 +0000 (+0100) Subject: Make Article::getContent() emit deprecation warnings X-Git-Tag: 1.31.0-rc.0~5131^2 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_ecrire%28%22lang_raccourcis%22%2C%22module=%24nom_module%22%29%20.%20%22?a=commitdiff_plain;h=303e9b4622d1aaecb11e6352b26eddadbc3c0b9b;p=lhc%2Fweb%2Fwiklou.git Make Article::getContent() emit deprecation warnings Bug: T145729 Change-Id: I35b619cfc0c1548deb8805b4aacd3477dec0d1f7 --- diff --git a/includes/page/Article.php b/includes/page/Article.php index 94286090aa..548e533b78 100644 --- a/includes/page/Article.php +++ b/includes/page/Article.php @@ -210,7 +210,7 @@ class Article implements Page { * @return string Return the text of this revision */ public function getContent() { - ContentHandler::deprecated( __METHOD__, '1.21' ); + wfDeprecated( __METHOD__, '1.21' ); $content = $this->getContentObject(); return ContentHandler::getContentText( $content ); }