r14138 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r14137‎ | r14138 | r14139 >
Date:22:20, 8 May 2006
Author:robchurch
Status:old
Tags:
Comment:
(bug 5819) Add 'PersonalUrls' hook
Modified paths:
  • /trunk/phase3/RELEASE-NOTES (modified) (history)
  • /trunk/phase3/docs/hooks.txt (modified) (history)
  • /trunk/phase3/includes/SkinTemplate.php (modified) (history)

Diff [purge]

Index: trunk/phase3/docs/hooks.txt
@@ -372,6 +372,12 @@
373373 this hook and append its values to the key.
374374 $hash: reference to a hash key string which can be modified
375375
 376+'PersonalUrls': Alter the user-specific navigation links (e.g. "my page,
 377+my talk page, my contributions" etc).
 378+
 379+&$personal_urls: Array of link specifiers (see SkinTemplate.php)
 380+$title: Title object representing the current page
 381+
376382 'TitleMoveComplete': after moving an article (title)
377383 $old: old title
378384 $nt: new title
Index: trunk/phase3/includes/SkinTemplate.php
@@ -525,6 +525,8 @@
526526 );
527527 }
528528 }
 529+
 530+ wfRunHooks( 'PersonalUrls', array( $personal_urls, $wgTitle ) );
529531 wfProfileOut( $fname );
530532 return $personal_urls;
531533 }
Index: trunk/phase3/RELEASE-NOTES
@@ -228,6 +228,7 @@
229229 * (bug 1120) Update for Czech language (Cs)
230230 * Added many missing formatNum calls
231231 * Added grammar function to Belarusian (be)
 232+* (bug 5819) Add 'PersonalUrls' hook
232233
233234 == Compatibility ==
234235

Follow-up revisions

RevisionCommit summaryAuthorDate
r14261(bug 5819) Fix the PersonalUrls hook so it's usefulrobchurch07:02, 17 May 2006

Status & tagging log