r14261 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r14260‎ | r14261 | r14262 >
Date:07:02, 17 May 2006
Author:robchurch
Status:old
Tags:
Comment:
(bug 5819) Fix the PersonalUrls hook so it's useful
Modified paths:
  • /trunk/phase3/docs/hooks.txt (modified) (history)
  • /trunk/phase3/includes/SkinTemplate.php (modified) (history)

Diff [purge]

Index: trunk/phase3/docs/hooks.txt
@@ -376,7 +376,7 @@
377377 my talk page, my contributions" etc).
378378
379379 &$personal_urls: Array of link specifiers (see SkinTemplate.php)
380 -$title: Title object representing the current page
 380+&$title: Title object representing the current page
381381
382382 'TitleMoveComplete': after moving an article (title)
383383 $old: old title
Index: trunk/phase3/includes/SkinTemplate.php
@@ -525,8 +525,8 @@
526526 );
527527 }
528528 }
529 -
530 - wfRunHooks( 'PersonalUrls', array( $personal_urls, $wgTitle ) );
 529+
 530+ wfRunHooks( 'PersonalUrls', array( &$personal_urls, &$wgTitle ) );
531531 wfProfileOut( $fname );
532532 return $personal_urls;
533533 }

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r14138(bug 5819) Add 'PersonalUrls' hookrobchurch22:20, 8 May 2006

Status & tagging log