SkinTemplate: Add $this as a parameter to PersonalUrls hook
Change-Id: I1116fd64ea0beac148ee75ea4ec050741fc2c3b7
This commit is contained in:
parent
4f57c6e446
commit
bb672df7c0
2 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue