MediaWiki:Common.js: Difference between revisions
Jump to navigation
Jump to search
(raw text on sidebar (hopefully this works) |
No edit summary |
||
Line 106: | Line 106: | ||
// Raw text on sidebar (hopefully this works lol) | // Raw text on sidebar (hopefully this works lol) | ||
$wgHooks['SkinBuildSidebar'][] = 'lfHideSidebar'; | |||
function lfHideSidebar( $skin, &$bar ) { | function lfHideSidebar( $skin, &$bar ) { | ||
global $wgUser; | global $wgUser; | ||
'text' => wfMessage( 'anon_sidebar' )->inContentLanguage()->parse(), | 'text' => wfMessage( 'anon_sidebar' )->inContentLanguage()->parse(), | ||
} | } |