From 3a0e932996b5bf1f36fafc4555806f92069e6850 Mon Sep 17 00:00:00 2001 From: Bryan Tong Minh Date: Sat, 25 Oct 2008 22:25:24 +0000 Subject: [PATCH] Hook SkinTemplateTabAction now passes $title by reference allowing it to be changed by extensions --- RELEASE-NOTES | 2 ++ docs/hooks.txt | 2 +- includes/SkinTemplate.php | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 476643de4e..89dae661bb 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -175,6 +175,8 @@ The following extensions are migrated into MediaWiki 1.14: * Special:Wanted templates special page added to display missing templates linked from articles * Make search matches bold only, not red as well +* Hook SkinTemplateTabAction now passes $title by reference allowing it to be + changed by extensions. === Bug fixes in 1.14 === diff --git a/docs/hooks.txt b/docs/hooks.txt index 7cab7561b2..6e92807d9a 100644 --- a/docs/hooks.txt +++ b/docs/hooks.txt @@ -1175,7 +1175,7 @@ $out: Css to return 'SkinTemplateTabAction': Override SkinTemplate::tabAction(). You can either create your own array, or alter the parameters for the normal one. &$this: The SkinTemplate instance. -$title: Title instance for the page. +&$title: Title instance for the page. $message: Visible label of tab. $selected: Whether this is a selected tab. $checkEdit: Whether or not the action=edit query should be added if appropriate. diff --git a/includes/SkinTemplate.php b/includes/SkinTemplate.php index 33307e3133..cae4073aa0 100644 --- a/includes/SkinTemplate.php +++ b/includes/SkinTemplate.php @@ -608,7 +608,7 @@ class SkinTemplate extends Skin { $result = array(); if( !wfRunHooks('SkinTemplateTabAction', array(&$this, - $title, $message, $selected, $checkEdit, + &$title, $message, $selected, $checkEdit, &$classes, &$query, &$text, &$result)) ) { return $result; } -- 2.20.1