Mediawiki Notes
Revision as of 12:08, 29 July 2007 by 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 ...)
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();
# }
#---------------------------------------------------------