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

Change subject: PageContentSave WikiPage typehint
......................................................................


PageContentSave WikiPage typehint

Change-Id: I36d4c5fcb7321e613504f346ee1535487531edeb
---
M includes/BlogPage.hooks.php
1 file changed, 7 insertions(+), 6 deletions(-)

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



diff --git a/includes/BlogPage.hooks.php b/includes/BlogPage.hooks.php
index 94e9fa4..da61042 100644
--- a/includes/BlogPage.hooks.php
+++ b/includes/BlogPage.hooks.php
@@ -75,14 +75,15 @@
         *
         * This is hooked into two separate hooks (todo: find out why), 
PageContentSave
         * and PageContentSaveComplete. Their arguments are mostly the same and 
both
-        * have $article as the first argument.
+        * have $wikiPage as the first argument.
         *
-        * @param Article $article Article object representing the page that 
was/is
+        * @param WikiPage $wikiPage WikiPage object representing the page that 
was/is
         *                         (being) saved
+        *
         * @return bool
         */
-       public static function updateCreatedOpinionsCount( &$article, &$user ) {
-               $aid = $article->getTitle()->getArticleID();
+       public static function updateCreatedOpinionsCount( &$wikiPage, &$user ) 
{
+               $aid = $wikiPage->getTitle()->getArticleID();
                // Shortcut, in order not to perform stupid queries (cl_from = 
0...)
                if ( $aid == 0 ) {
                        return true;
@@ -121,8 +122,8 @@
                                                $ctgTitle = Title::newFromText(
                                                        $parser->preprocess(
                                                                trim( 
$userBlogCat ),
-                                                               
$article->getContext()->getTitle(),
-                                                               
$article->getContext()->getOutput()->parserOptions()
+                                                               
$wikiPage->getContext()->getTitle(),
+                                                               
$wikiPage->getContext()->getOutput()->parserOptions()
                                                        )
                                                );
                                                $ctgTitle = 
$ctgTitle->getDBkey();

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I36d4c5fcb7321e613504f346ee1535487531edeb
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/BlogPage
Gerrit-Branch: master
Gerrit-Owner: Addshore <[email protected]>
Gerrit-Reviewer: Legoktm <[email protected]>
Gerrit-Reviewer: Lewis Cawte <[email protected]>
Gerrit-Reviewer: UltrasonicNXT <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

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

Reply via email to