From 7c93a0f2924f8b749f0eb0022c237c5612aa262c Mon Sep 17 00:00:00 2001 From: renato <renato@rezo.net> Date: Fri, 25 May 2007 19:37:09 +0000 Subject: [PATCH] inject the scripts from pipelines only if the page is an html one --- ecrire/public.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ecrire/public.php b/ecrire/public.php index 29709b8a18..8964516dba 100644 --- a/ecrire/public.php +++ b/ecrire/public.php @@ -199,8 +199,9 @@ if (defined('_INC_PUBLIC')) { } } - $page = analyse_js_ajoutee($page); - + if($html) + $page = analyse_js_ajoutee($page); + // Passer la main au debuggueur le cas echeant if ($var_mode == 'debug') { include_spip('public/debug'); -- GitLab