Index: trunk/phase3/skins/Modern.php |
— | — | @@ -26,9 +26,9 @@ |
27 | 27 | * skin L&F. |
28 | 28 | */ |
29 | 29 | function getPoweredBy() { |
30 | | - global $wgVersion, $wgUser; |
| 30 | + global $wgVersion; |
31 | 31 | $text = "<div class='mw_poweredby'>Powered by MediaWiki $wgVersion</div>"; |
32 | | - wfRunHooks( 'SkinGetPoweredBy', array( &$text, $wgUser->getSkin()->getSkinName() ) ); |
| 32 | + wfRunHooks( 'SkinGetPoweredBy', array( &$text, $this ) ); |
33 | 33 | return $text; |
34 | 34 | } |
35 | 35 | |
Index: trunk/phase3/docs/hooks.txt |
— | — | @@ -1464,7 +1464,7 @@ |
1465 | 1465 | 'SkinGetPoweredBy' |
1466 | 1466 | &$text: additional 'powered by' icons in HTML. |
1467 | 1467 | Note: Modern skin does not use the MediaWiki icon but plain text instead |
1468 | | -$skin: Name of the skin |
| 1468 | +$skin: Skin object |
1469 | 1469 | |
1470 | 1470 | 'SkinSubPageSubtitle': At the beginning of Skin::subPageSubtitle() |
1471 | 1471 | &$subpages: Subpage links HTML |
Index: trunk/phase3/includes/Skin.php |
— | — | @@ -1547,11 +1547,11 @@ |
1548 | 1548 | * @return string |
1549 | 1549 | */ |
1550 | 1550 | function getPoweredBy() { |
1551 | | - global $wgStylePath, $wgUser; |
| 1551 | + global $wgStylePath; |
1552 | 1552 | |
1553 | 1553 | $url = htmlspecialchars( "$wgStylePath/common/images/poweredby_mediawiki_88x31.png" ); |
1554 | 1554 | $text = '<a href="http://www.mediawiki.org/"><img src="' . $url . '" height="31" width="88" alt="Powered by MediaWiki" /></a>'; |
1555 | | - wfRunHooks( 'SkinGetPoweredBy', array( &$text, $wgUser->getSkin()->getSkinName() ) ); |
| 1555 | + wfRunHooks( 'SkinGetPoweredBy', array( &$text, $this ) ); |
1556 | 1556 | return $text; |
1557 | 1557 | } |
1558 | 1558 | |