 |
| Site Admin |
Joined: Mon May 12, 2003 12:36 pm Posts: 3091 Location: Rutsker, Bornholm, Denmark
|
|
Make a fresh install of CMSimple 2.7 - add an H2 heading to frontpage and save - then go to the last page to see the wrong submenu.
Submenu should be fixed to:
function submenu(){global $s,$cl,$l,$tx,$hs,$hc;$ta=array();if(!isset($hc[$hs+1])||!($l[$s]==1||$l[$s]==2))return;$s3=true;for($i=$hc[$hs+1];$i<$cl;$i++){if($l[$i]==1)break;if($l[$i]==2){if($l[$s]!=1)break;else{$ta[]=$i;$s3=false;}}if($l[$i]==3&&$s3)$ta[]=$i;}if(count($ta)!=0)return '<h4>'.$tx['submenu']['heading'].'</h4>'.li($ta,'submenu');}
|
|