Difference between revisions of "Mediawiki Notes"
Jump to navigation
Jump to search
PeterHarding (talk | contribs) (New page: = MediaWiki Notes = == Manipulating Navigation Menus == Adding the following code to the buildSidebar() function in include/Skins.php will cause an empty menu to be used when no use is ...) |
PeterHarding (talk | contribs) |
||
| Line 10: | Line 10: | ||
global $parserMemc, $wgEnableSidebarCache; | global $parserMemc, $wgEnableSidebarCache; | ||
global $wgLang, $wgContLang; | global $wgLang, $wgContLang; | ||
#----- PLH 20070728 -------------------------------------- | #----- PLH 20070728 -------------------------------------- | ||
| Line 16: | Line 15: | ||
global $wgUser; | global $wgUser; | ||
if (!$wgUser->isLoggedIn()) { | |||
return array(); | |||
} | |||
#--------------------------------------------------------- | #--------------------------------------------------------- | ||
</pre> | </pre> | ||
Revision as of 12:09, 29 July 2007
MediaWiki Notes
Adding the following code to the buildSidebar() function in include/Skins.php will cause an empty menu to be used when no use is logged in.
(Around line 1608 in include/Skins.php)
function buildSidebar() {
global $parserMemc, $wgEnableSidebarCache;
global $wgLang, $wgContLang;
#----- PLH 20070728 --------------------------------------
global $wgUser;
if (!$wgUser->isLoggedIn()) {
return array();
}
#---------------------------------------------------------