From ef7d430773297b398c0ef2ae426f38c04f802f13 Mon Sep 17 00:00:00 2001 From: Tim Laqua Date: Thu, 23 Aug 2007 22:34:12 +0000 Subject: [PATCH] Added SkinAfterBottomScripts hook to Skin::bottomScripts(), documented in hooks.txt --- docs/hooks.txt | 5 +++++ includes/Skin.php | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/docs/hooks.txt b/docs/hooks.txt index b46541ec70..0b846f3db6 100644 --- a/docs/hooks.txt +++ b/docs/hooks.txt @@ -612,6 +612,11 @@ or change the value of $siteNotice and return false to alter it. &$siteNotice: HTML sitenotice Alter the contents of $siteNotice to add to/alter the sitenotice/anonnotice. +'SkinAfterBottomScripts': At the end of Skin::bottomScripts() +$skin: Skin object +&$text: bottomScripts Text +Append to $text to add additional text/scripts after the stock bottom scripts. + 'SkinTemplateOutputPageBeforeExec': Before SkinTemplate::outputPage() starts page output &$sktemplate: SkinTemplate object &$tpl: Template engine object diff --git a/includes/Skin.php b/includes/Skin.php index 21b60ec200..f9e1705779 100644 --- a/includes/Skin.php +++ b/includes/Skin.php @@ -708,7 +708,9 @@ END; */ function bottomScripts() { global $wgJsMimeType; - return "\n\t\t\n"; + $bottomScriptText = "\n\t\t\n"; + wfRunHooks( 'SkinAfterBottomScripts', array( $this, &$bottomScriptText ) ); + return $bottomScriptText; } /** @return string Retrievied from HTML text */ -- 2.20.1