From: Raimond Spekking Date: Fri, 12 Nov 2010 12:16:48 +0000 (+0000) Subject: Follow-up r76434: Run hook for Modern skin too per suggestion of Jack Phoenix X-Git-Tag: 1.31.0-rc.0~33917 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/pie.php?a=commitdiff_plain;h=a1cd0298384267e710753e54ca9d54d2c8de70e4;p=lhc%2Fweb%2Fwiklou.git Follow-up r76434: Run hook for Modern skin too per suggestion of Jack Phoenix --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 50847280ac..6bbc2ba35a 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -201,7 +201,8 @@ LocalSettings.php. The specific bugs are listed below in the general notes. * Special:Search: Add CSS classes to 'none found' and 'create link' messages * Add CSS classes (including namespace and pagename) to the enhanced recent changes/watchlist entries -* (bug 22463) Add hook 'SkinGetPoweredBy' to make 'powered by' icon customizable +* (bug 22463) Add hook 'SkinGetPoweredBy' to make 'powered by' icon/text + customizable * Added CSS print pagination to the print stylesheets === Bug fixes in 1.17 === diff --git a/docs/hooks.txt b/docs/hooks.txt index 0bcf00db60..d97718a739 100644 --- a/docs/hooks.txt +++ b/docs/hooks.txt @@ -1462,7 +1462,8 @@ $type: 'normal' or 'history' for old/diff views &$forContent: overridable flag if copyright footer is shown in content language. 'SkinGetPoweredBy' -&$text: additional 'powered by' icons in HTML +&$text: additional 'powered by' icons in HTML. +Note: Modern skin does not use the MediaWiki icon but plain text instead 'SkinSubPageSubtitle': At the beginning of Skin::subPageSubtitle() &$subpages: Subpage links HTML diff --git a/skins/Modern.php b/skins/Modern.php index 899c53e27f..f3605f7e06 100644 --- a/skins/Modern.php +++ b/skins/Modern.php @@ -27,7 +27,9 @@ class SkinModern extends SkinTemplate { */ function getPoweredBy() { global $wgVersion; - return "
Powered by MediaWiki $wgVersion
"; + $text = "
Powered by MediaWiki $wgVersion
"; + wfRunHooks( 'SkinGetPoweredBy', array( &$text ) ); + return $text; } function setupSkinUserCss( OutputPage $out ){