Legoktm has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/310754

Change subject: Emit deprecation warnigns for Article::getText()
......................................................................

Emit deprecation warnigns for Article::getText()

Deprecated since 1.21.

Bug: T145747
Change-Id: I6fe620702fcc455dbe229abca1145b0c8ea3f8d2
---
M includes/page/Article.php
1 file changed, 2 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/54/310754/1

diff --git a/includes/page/Article.php b/includes/page/Article.php
index 80061d5..db6df86 100644
--- a/includes/page/Article.php
+++ b/includes/page/Article.php
@@ -2333,9 +2333,10 @@
        /**
         * Call to WikiPage function for backwards compatibility.
         * @see WikiPage::getText
+        * @deprecated since 1.21 use WikiPage::getContent() instead
         */
        public function getText( $audience = Revision::FOR_PUBLIC, User $user = 
null ) {
-               ContentHandler::deprecated( __METHOD__, '1.21' );
+               wfDeprecated( __METHOD__, '1.21' );
                return $this->mPage->getText( $audience, $user );
        }
 

-- 
To view, visit https://gerrit.wikimedia.org/r/310754
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I6fe620702fcc455dbe229abca1145b0c8ea3f8d2
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Legoktm <legoktm.wikipe...@gmail.com>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to