--- multi.php 2001/07/09 08:49:46 1.2 +++ multi.php 2001/07/09 13:40:26 1.3 @@ -21,12 +21,19 @@ $title.=" : $row[name]"; if ($row[type]=="h" && file_exists(find_html_file("multi",$row[html]))) { $main=join('',file(find_html_file("multi",$row[html]))); - } elseif ($row[type]=="p" && file_exists(find_html_file("",$row[path]))) { - $main=join('',file(find_html_file("",$row[path]))); + } elseif ($row[type]=="p") { + if (file_exists(find_html_file("",$row[path]))) { + $main=join('',file(find_html_file("",$row[path]))); + } else { + $main="can't find $row[path] for id $p"; + } // try to load translation (html fix-up or something) $fix_up="./fix_up/".str_replace("/","_",dirname($row[path])).".inc"; + +# $main.=""; ## DEBUG if (file_exists($fix_up)) { include($fix_up); +# $main.=""; ## DEBUG } } else { $main="can't find multi page for id $p";