View Single Post
Old 21.10.2004, 18:51   #3 (permalink)
swonline
Baby Mamber
 
swonline's Avatar
 
Join Date: May 2004
Posts: 13
swonline is on a distinguished road
Default Re: SWmenuFree2.0 Released!

The get() function is specific to mambo 4.5.1 but this line should parse in earlier versions, at least it does on my computer. I will have to investigate further.

For now just replace line 18 of the mod_swmenufree.php file.

line 18:
Code:
$menu = ($params->menutype ? $params->menutype : $params->get( 'menutype' )) ? $params->menutype ? $params->menutype : $params->get( 'menutype' ) : "mainmenu";
if you are using a version of mambo prior to 4.5.1 then replace this line with:

Code:
$menu = $params->menutype ? $params->menutype : "mainmenu";
if your version is 4.5.1 or 4.5.1a then relace the line with this code:
Code:
$menu =  $params->get( 'menutype' ) ?  $params->get( 'menutype' ) : "mainmenu";
or otherwise you could just hardcode the menu you want in. eg.
$menu = "mainmenu"

I will fix this line of code soon to make it more compatable with all mambo versions.
swonline is offline   Reply With Quote