SkinTemplate: Add $this as a parameter to PersonalUrls hook

Change-Id: I1116fd64ea0beac148ee75ea4ec050741fc2c3b7
This commit is contained in:
Bartosz Dziewoński 2013-11-16 13:36:24 +01:00
parent 4f57c6e446
commit bb672df7c0
2 changed files with 2 additions and 1 deletions

View file

@ -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

View file

@ -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;
}