From: Rob Church Date: Mon, 8 May 2006 22:20:55 +0000 (+0000) Subject: (bug 5819) Add 'PersonalUrls' hook X-Git-Tag: 1.31.0-rc.0~57198 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_aide%28?a=commitdiff_plain;h=c18543d893053c7d6e472df277cc6f3d086d07ae;p=lhc%2Fweb%2Fwiklou.git (bug 5819) Add 'PersonalUrls' hook --- 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; }