diff --git a/inc-compilo-index.php3 b/inc-compilo-index.php3
index fc86a254e3dcfcb26764b9709f66d5daf5630094..6cf4a37a92ef5a7add79e3f7ba14777bcaadfe29 100644
--- a/inc-compilo-index.php3
+++ b/inc-compilo-index.php3
@@ -172,10 +172,10 @@ function applique_filtres($p) {
 				        $arglist = filtres_arglist($regs[2],$p);
 				}
 				if (!function_exists($fonc))
-					$code = "spip_error_handler(1,'".
+					$code = "erreur_squelette('".
 					  texte_script(
 						_T('erreur_filtre', array('filtre' => $fonc))
-					)."','','','')";
+					)."','" . $p->id_boucle . "')";
 				else $code = "$fonc($code$arglist)";
 			}
 		}