* (bug 22463) Add hook 'SkinGetPoweredBy' to make 'powered by' icon customizable

Patch by Yaron
This commit is contained in:
Raimond Spekking 2010-11-10 08:18:21 +00:00
parent 95edd12d42
commit 47bf2bd024
3 changed files with 8 additions and 2 deletions

View file

@ -201,6 +201,7 @@ 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 fixes in 1.17 ===
* (bug 17560) Half-broken deletion moved image files to deletion archive

View file

@ -1461,6 +1461,9 @@ $type: 'normal' or 'history' for old/diff views
&$link: overridable HTML link to be passed into the message as $1
&$forContent: overridable flag if copyright footer is shown in content language.
'SkinGetPoweredBy'
&$text: additional 'powered by' icons in HTML
'SkinSubPageSubtitle': At the beginning of Skin::subPageSubtitle()
&$subpages: Subpage links HTML
$skin: Skin object

View file

@ -1550,9 +1550,11 @@ class Skin extends Linker {
global $wgStylePath;
$url = htmlspecialchars( "$wgStylePath/common/images/poweredby_mediawiki_88x31.png" );
$img = '<a href="http://www.mediawiki.org/"><img src="' . $url . '" height="31" width="88" alt="Powered by MediaWiki" /></a>';
$text = '<a href="http://www.mediawiki.org/"><img src="' . $url . '" height="31" width="88" alt="Powered by MediaWiki" /></a>';
return $img;
wfRunHooks( 'SkinGetPoweredBy', array( &$text ) );
return $text;
}
function lastModified() {