From aac9dd2e569c1cf0fe539f7dac90fa1524c8ea2f Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Sun, 26 Sep 2010 16:37:00 +0000 Subject: [PATCH] * (bug 25292) SkinSubPageSubtitle hook now passes the Skin object as second parameter --- RELEASE-NOTES | 2 ++ docs/hooks.txt | 2 +- includes/Skin.php | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 62878c82c5..5ad5e6f833 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -337,6 +337,8 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN * (bug 24987) Special:ListUsers does not take external groups into account * (bug 20633) update.php has mixed language output * SQLite system table names are now never prefixed. +* (bug 25292) SkinSubPageSubtitle hook now passes the Skin object as second + parameter === API changes in 1.17 === * (bug 22738) Allow filtering by action type on query=logevent. diff --git a/docs/hooks.txt b/docs/hooks.txt index 9463288863..86674a8fac 100644 --- a/docs/hooks.txt +++ b/docs/hooks.txt @@ -1444,8 +1444,8 @@ $type: 'normal' or 'history' for old/diff views &$forContent: overridable flag if copyright footer is shown in content language. 'SkinSubPageSubtitle': At the beginning of Skin::subPageSubtitle() -$skin: Skin object &$subpages: Subpage links HTML +$skin: Skin object If false is returned $subpages will be used instead of the HTML subPageSubtitle() generates. If true is returned, $subpages will be ignored and the rest of diff --git a/includes/Skin.php b/includes/Skin.php index 7e0bb3dc60..51ea098b68 100644 --- a/includes/Skin.php +++ b/includes/Skin.php @@ -1058,7 +1058,7 @@ class Skin extends Linker { function subPageSubtitle() { $subpages = ''; - if ( !wfRunHooks( 'SkinSubPageSubtitle', array( &$subpages ) ) ) { + if ( !wfRunHooks( 'SkinSubPageSubtitle', array( &$subpages, $this ) ) ) { return $subpages; } -- 2.20.1