--- index.php 2001/11/07 09:59:40 1.14 +++ index.php 2001/11/08 08:55:38 1.16 @@ -16,12 +16,16 @@ include("find_html_file.inc"); include("fix_msshit.inc"); +if ($menu_item) { + $title.=" : $menu_item"; + $smarty->assign("mtext",$menu_item); +} else { + $smarty->assign("mtext",$title); +} + if (isset($h) && file_exists(find_html_file("h/$section",$h))) { $main=join('',file(find_html_file("h/$section",$h))); $main=fix_msshit($main); - if ($menu_item) { - $title.=" : $menu_item"; - } } elseif (isset($p) && file_exists("sections/$p.inc")) { include("sections/$p.inc"); } elseif (file_exists("template/$main_file.tpl")) { @@ -39,6 +43,7 @@ } else { $main="Can't find static/$d[0]/$d[1]"; } + if (file_exists("sections/$section.inc")) include("sections/$section.inc"); } elseif (find_html_file("h",$section)) { $main=join('',file(find_html_file("h",$section))); $main=fix_msshit($main);