From: Rob Church Date: Wed, 17 May 2006 07:02:06 +0000 (+0000) Subject: (bug 5819) Fix the PersonalUrls hook so it's useful X-Git-Tag: 1.31.0-rc.0~57112 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_ecrire%28%22suivi_revisions%22%29%20.%20%22?a=commitdiff_plain;h=7c891d56e52eb3dad37103f6b58a619d63089bfa;p=lhc%2Fweb%2Fwiklou.git (bug 5819) Fix the PersonalUrls hook so it's useful --- diff --git a/docs/hooks.txt b/docs/hooks.txt index 1f215be5b0..f39165a636 100644 --- a/docs/hooks.txt +++ b/docs/hooks.txt @@ -376,7 +376,7 @@ $hash: reference to a hash key string which can be modified my talk page, my contributions" etc). &$personal_urls: Array of link specifiers (see SkinTemplate.php) -$title: Title object representing the current page +&$title: Title object representing the current page 'TitleMoveComplete': after moving an article (title) $old: old title diff --git a/includes/SkinTemplate.php b/includes/SkinTemplate.php index ae392a0159..afed9e7391 100644 --- a/includes/SkinTemplate.php +++ b/includes/SkinTemplate.php @@ -525,8 +525,8 @@ class SkinTemplate extends Skin { ); } } - - wfRunHooks( 'PersonalUrls', array( $personal_urls, $wgTitle ) ); + + wfRunHooks( 'PersonalUrls', array( &$personal_urls, &$wgTitle ) ); wfProfileOut( $fname ); return $personal_urls; }