Addshore has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/396385 )

Change subject: ArticleEditUpdateNewTalk WikiPage typehint
......................................................................

ArticleEditUpdateNewTalk WikiPage typehint

Change-Id: Ib41823ea650e6dd067b4fb0508bd6da449db76d7
---
M classes/Hooks.php
1 file changed, 4 insertions(+), 3 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/LiquidThreads 
refs/changes/85/396385/1

diff --git a/classes/Hooks.php b/classes/Hooks.php
index 98cf96d..14d1ad3 100644
--- a/classes/Hooks.php
+++ b/classes/Hooks.php
@@ -187,11 +187,12 @@
        }
 
        /**
-        * @param Article $article
+        * @param WikiPage $wikiPage
+        *
         * @return bool
         */
-       static function updateNewtalkOnEdit( $article ) {
-               $title = $article->getTitle();
+       static function updateNewtalkOnEdit( WikiPage $wikiPage ) {
+               $title = $wikiPage->getTitle();
 
                // They're only editing the header, don't update newtalk.
                return !LqtDispatch::isLqtPage( $title );

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ib41823ea650e6dd067b4fb0508bd6da449db76d7
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/LiquidThreads
Gerrit-Branch: master
Gerrit-Owner: Addshore <addshorew...@gmail.com>

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

Reply via email to