Make Article::getContent() emit deprecation warnings
authorReedy <reedy@wikimedia.org>
Sat, 8 Oct 2016 12:28:38 +0000 (13:28 +0100)
committerReedy <reedy@wikimedia.org>
Sat, 8 Oct 2016 12:28:38 +0000 (13:28 +0100)
Bug: T145729
Change-Id: I35b619cfc0c1548deb8805b4aacd3477dec0d1f7

includes/page/Article.php

index 9428609..548e533 100644 (file)
@@ -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 );
        }