jenkins-bot has submitted this change and it was merged.

Change subject: SkinTemplate: Add $this as a parameter to PersonalUrls hook
......................................................................


SkinTemplate: Add $this as a parameter to PersonalUrls hook

Change-Id: I1116fd64ea0beac148ee75ea4ec050741fc2c3b7
---
M docs/hooks.txt
M includes/SkinTemplate.php
2 files changed, 2 insertions(+), 1 deletion(-)

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



diff --git a/docs/hooks.txt b/docs/hooks.txt
index d56886c..30b9b72 100644
--- a/docs/hooks.txt
+++ b/docs/hooks.txt
@@ -1909,6 +1909,7 @@
 my talk page, my contributions" etc).
 &$personal_urls: Array of link specifiers (see SkinTemplate.php)
 &$title: Title object representing the current page
+$skin: Skin object providing context (e.g. to check if the user is logged in, 
etc.)
 
 'PingLimiter': Allows extensions to override the results of 
User::pingLimiter().
 &$user : User performing the action
diff --git a/includes/SkinTemplate.php b/includes/SkinTemplate.php
index 77ea307..0990584 100644
--- a/includes/SkinTemplate.php
+++ b/includes/SkinTemplate.php
@@ -741,7 +741,7 @@
                        $personal_urls[$login_id] = $login_url;
                }
 
-               wfRunHooks( 'PersonalUrls', array( &$personal_urls, &$title ) );
+               wfRunHooks( 'PersonalUrls', array( &$personal_urls, &$title, 
$this ) );
                wfProfileOut( __METHOD__ );
                return $personal_urls;
        }

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I1116fd64ea0beac148ee75ea4ec050741fc2c3b7
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Bartosz Dziewoński <[email protected]>
Gerrit-Reviewer: Alex Monk <[email protected]>
Gerrit-Reviewer: Aude <[email protected]>
Gerrit-Reviewer: Bartosz Dziewoński <[email protected]>
Gerrit-Reviewer: Legoktm <[email protected]>
Gerrit-Reviewer: jenkins-bot

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

Reply via email to