Hook SkinTemplateTabAction now passes $title by reference allowing it to be changed...
authorBryan Tong Minh <btongminh@users.mediawiki.org>
Sat, 25 Oct 2008 22:25:24 +0000 (22:25 +0000)
committerBryan Tong Minh <btongminh@users.mediawiki.org>
Sat, 25 Oct 2008 22:25:24 +0000 (22:25 +0000)
RELEASE-NOTES
docs/hooks.txt
includes/SkinTemplate.php

index 476643d..89dae66 100644 (file)
@@ -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 ===
 
index 7cab756..6e92807 100644 (file)
@@ -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.
index 33307e3..cae4073 100644 (file)
@@ -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;
                }