(bug 5819) Fix the PersonalUrls hook so it's useful
authorRob Church <robchurch@users.mediawiki.org>
Wed, 17 May 2006 07:02:06 +0000 (07:02 +0000)
committerRob Church <robchurch@users.mediawiki.org>
Wed, 17 May 2006 07:02:06 +0000 (07:02 +0000)
docs/hooks.txt
includes/SkinTemplate.php

index 1f215be..f39165a 100644 (file)
@@ -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
index ae392a0..afed9e7 100644 (file)
@@ -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;
        }