jenkins-bot has submitted this change and it was merged. ( 
https://gerrit.wikimedia.org/r/326442 )

Change subject: Replaced "Article::getContent" deprecated in MediaWiki 1.21
......................................................................


Replaced "Article::getContent" deprecated in MediaWiki 1.21

Replaced "Article" class with "WikiPage"

Bug: T151973
Change-Id: Ib68a20e9fd16e221f1e8e5edb7aad26d504089c0
---
M PollNYHooks.php
1 file changed, 3 insertions(+), 4 deletions(-)

Approvals:
  Reedy: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/PollNYHooks.php b/PollNYHooks.php
index fe8d704..fe63240 100644
--- a/PollNYHooks.php
+++ b/PollNYHooks.php
@@ -167,11 +167,10 @@
        }
 
        public static function followPollID( $pollTitle ) {
-               $pollArticle = new Article( $pollTitle );
-               $pollWikiContent = $pollArticle->getContent();
+               $pollPage = new WikiPage( $pollTitle );
 
-               if( $pollArticle->isRedirect( $pollWikiContent ) ) {
-                       $pollTitle = $pollArticle->followRedirect();
+               if( $pollPage->isRedirect() ) {
+                       $pollTitle = $pollPage->followRedirect();
                        return PollNYHooks::followPollID( $pollTitle );
                } else {
                        return $pollTitle;

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

Gerrit-MessageType: merged
Gerrit-Change-Id: Ib68a20e9fd16e221f1e8e5edb7aad26d504089c0
Gerrit-PatchSet: 3
Gerrit-Project: mediawiki/extensions/PollNY
Gerrit-Branch: master
Gerrit-Owner: Filip <[email protected]>
Gerrit-Reviewer: Reedy <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to