--- index.php 2001/07/02 08:39:01 1.6 +++ index.php 2001/07/09 14:25:36 1.7 @@ -23,14 +23,14 @@ 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")) { $main=$smarty->fetch("$main_file.tpl"); } elseif (find_html_file("h",$section)) { $main=join('',file(find_html_file("h",$section))); } elseif (file_exists("sections/$section.inc")) { include("sections/$section.inc"); -} elseif (isset($p) && file_exists("sections/$p.inc")) { - include("sections/$p.inc"); } else { $main="can't find template or html file for section $section"; }