From: Reedy Date: Wed, 5 Oct 2016 00:55:49 +0000 (+0100) Subject: Make Revision::getText() emit deprecation warnings. X-Git-Tag: 1.31.0-rc.0~5192^2 X-Git-Url: http://git.cyclocoop.org/?a=commitdiff_plain;h=f8d7406d49c903eaeccb8882bc99b950acdefafa;p=lhc%2Fweb%2Fwiklou.git Make Revision::getText() emit deprecation warnings. Bug: T147380 Change-Id: Idae98ee9360acc8f4593ff623ceef4dbb0d27c04 --- diff --git a/includes/Revision.php b/includes/Revision.php index 6acc528f76..ddbe64617b 100644 --- a/includes/Revision.php +++ b/includes/Revision.php @@ -1046,11 +1046,10 @@ class Revision implements IDBAccessObject { * to the $audience parameter * * @deprecated since 1.21, use getContent() instead - * @todo Replace usage in core * @return string */ public function getText( $audience = self::FOR_PUBLIC, User $user = null ) { - ContentHandler::deprecated( __METHOD__, '1.21' ); + wfDeprecated( __METHOD__, '1.21' ); $content = $this->getContent( $audience, $user ); return ContentHandler::getContentText( $content ); # returns the raw content text, if applicable