Index: trunk/phase3/docs/hooks.txt |
— | — | @@ -1461,6 +1461,9 @@ |
1462 | 1462 | &$link: overridable HTML link to be passed into the message as $1 |
1463 | 1463 | &$forContent: overridable flag if copyright footer is shown in content language. |
1464 | 1464 | |
| 1465 | +'SkinGetPoweredBy' |
| 1466 | +&$text: additional 'powered by' icons in HTML |
| 1467 | + |
1465 | 1468 | 'SkinSubPageSubtitle': At the beginning of Skin::subPageSubtitle() |
1466 | 1469 | &$subpages: Subpage links HTML |
1467 | 1470 | $skin: Skin object |
Index: trunk/phase3/includes/Skin.php |
— | — | @@ -1550,9 +1550,11 @@ |
1551 | 1551 | global $wgStylePath; |
1552 | 1552 | |
1553 | 1553 | $url = htmlspecialchars( "$wgStylePath/common/images/poweredby_mediawiki_88x31.png" ); |
1554 | | - $img = '<a href="http://www.mediawiki.org/"><img src="' . $url . '" height="31" width="88" alt="Powered by MediaWiki" /></a>'; |
| 1554 | + $text = '<a href="http://www.mediawiki.org/"><img src="' . $url . '" height="31" width="88" alt="Powered by MediaWiki" /></a>'; |
1555 | 1555 | |
1556 | | - return $img; |
| 1556 | + wfRunHooks( 'SkinGetPoweredBy', array( &$text ) ); |
| 1557 | + |
| 1558 | + return $text; |
1557 | 1559 | } |
1558 | 1560 | |
1559 | 1561 | function lastModified() { |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -201,6 +201,7 @@ |
202 | 202 | * Special:Search: Add CSS classes to 'none found' and 'create link' messages |
203 | 203 | * Add CSS classes (including namespace and pagename) to the enhanced recent |
204 | 204 | changes/watchlist entries |
| 205 | +* (bug 22463) Add hook 'SkinGetPoweredBy' to make 'powered by' icon customizable |
205 | 206 | |
206 | 207 | === Bug fixes in 1.17 === |
207 | 208 | * (bug 17560) Half-broken deletion moved image files to deletion archive |