diff --git a/page.php3 b/page.php3 index 81937c1a956e80ea862cfb41070bb6ca896cc91f..18a8ecc6b7fae11fc9a16ff87f0403382d66157c 100644 --- a/page.php3 +++ b/page.php3 @@ -20,11 +20,10 @@ if (strstr($fond, '..')) { if (!function_exists('find_in_path')) { include ('ecrire/inc_version.php3'); } -if (preg_match(',^(squelettes|dist)/,', find_in_path("$fond.html"))) { +if (preg_match(',^(squelettes/|dist/404,', $a = find_in_path("$fond.html"))) { include ("inc-public.php3"); } else { - echo find_in_path("$fond.html"); - spip_log("page.php3: le squelette $fond.html *doit* se trouver dans squelettes/ ou dist/"); + spip_log("page.php3: le squelette $fond.html ($a) *doit* se trouver dans squelettes/"); }