From c18543d893053c7d6e472df277cc6f3d086d07ae Mon Sep 17 00:00:00 2001 From: Rob Church Date: Mon, 8 May 2006 22:20:55 +0000 Subject: [PATCH] (bug 5819) Add 'PersonalUrls' hook --- RELEASE-NOTES | 1 + docs/hooks.txt | 6 ++++++ includes/SkinTemplate.php | 2 ++ 3 files changed, 9 insertions(+) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index cdf2186999..58c6a6a615 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -228,6 +228,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN * (bug 1120) Update for Czech language (Cs) * Added many missing formatNum calls * Added grammar function to Belarusian (be) +* (bug 5819) Add 'PersonalUrls' hook == Compatibility == diff --git a/docs/hooks.txt b/docs/hooks.txt index 2f3d8c8bca..61466445bf 100644 --- a/docs/hooks.txt +++ b/docs/hooks.txt @@ -372,6 +372,12 @@ $text: the text that will be displayed, in HTML (string) this hook and append its values to the key. $hash: reference to a hash key string which can be modified +'PersonalUrls': Alter the user-specific navigation links (e.g. "my page, +my talk page, my contributions" etc). + +&$personal_urls: Array of link specifiers (see SkinTemplate.php) +$title: Title object representing the current page + 'TitleMoveComplete': after moving an article (title) $old: old title $nt: new title diff --git a/includes/SkinTemplate.php b/includes/SkinTemplate.php index e87987fc78..771004df5e 100644 --- a/includes/SkinTemplate.php +++ b/includes/SkinTemplate.php @@ -525,6 +525,8 @@ class SkinTemplate extends Skin { ); } } + + wfRunHooks( 'PersonalUrls', array( $personal_urls, $wgTitle ) ); wfProfileOut( $fname ); return $personal_urls; } -- 2.20.1