From: Bartosz DziewoƄski Date: Sat, 16 Nov 2013 12:36:24 +0000 (+0100) Subject: SkinTemplate: Add $this as a parameter to PersonalUrls hook X-Git-Tag: 1.31.0-rc.0~18095^2 X-Git-Url: http://git.cyclocoop.org/%27.parametre_url%28%20%20%20generer_action_auteur%28%27charger_plugin%27%2C%20%27update_flux%27%29%2C%27update_flux%27%2C%20%27oui%27%29.%27?a=commitdiff_plain;h=bb672df7c06613686d25924c4a50ff98789a4b1c;p=lhc%2Fweb%2Fwiklou.git SkinTemplate: Add $this as a parameter to PersonalUrls hook Change-Id: I1116fd64ea0beac148ee75ea4ec050741fc2c3b7 --- diff --git a/docs/hooks.txt b/docs/hooks.txt index d56886c93c..30b9b72a1d 100644 --- a/docs/hooks.txt +++ b/docs/hooks.txt @@ -1909,6 +1909,7 @@ that tests continue to run properly. 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 77ea307303..0990584da3 100644 --- a/includes/SkinTemplate.php +++ b/includes/SkinTemplate.php @@ -741,7 +741,7 @@ class SkinTemplate extends Skin { $personal_urls[$login_id] = $login_url; } - wfRunHooks( 'PersonalUrls', array( &$personal_urls, &$title ) ); + wfRunHooks( 'PersonalUrls', array( &$personal_urls, &$title, $this ) ); wfProfileOut( __METHOD__ ); return $personal_urls; }