Filip has uploaded a new change for review. ( 
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, 4 insertions(+), 4 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/PollNY 
refs/changes/42/326442/1

diff --git a/PollNYHooks.php b/PollNYHooks.php
index fe8d704..60e5680 100644
--- a/PollNYHooks.php
+++ b/PollNYHooks.php
@@ -167,11 +167,11 @@
        }
 
        public static function followPollID( $pollTitle ) {
-               $pollArticle = new Article( $pollTitle );
-               $pollWikiContent = $pollArticle->getContent();
+               $pollPage = new WikiPage( $pollTitle );
+               $pollWikiContent = $pollPage->getContent();
 
-               if( $pollArticle->isRedirect( $pollWikiContent ) ) {
-                       $pollTitle = $pollArticle->followRedirect();
+               if( $pollPage->isRedirect( $pollWikiContent ) ) {
+                       $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: newchange
Gerrit-Change-Id: Ib68a20e9fd16e221f1e8e5edb7aad26d504089c0
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/PollNY
Gerrit-Branch: master
Gerrit-Owner: Filip <[email protected]>

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

Reply via email to