Make Revision::getText() emit deprecation warnings.
authorReedy <reedy@wikimedia.org>
Wed, 5 Oct 2016 00:55:49 +0000 (01:55 +0100)
committerReedy <reedy@wikimedia.org>
Wed, 5 Oct 2016 00:55:49 +0000 (01:55 +0100)
Bug: T147380
Change-Id: Idae98ee9360acc8f4593ff623ceef4dbb0d27c04

includes/Revision.php

index 6acc528..ddbe646 100644 (file)
@@ -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