From 1c0aa2c82efdbf5bf57e6c0c57d4c17c518c9d30 Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Fri, 14 Nov 2008 14:14:04 +0000 Subject: [PATCH] =?UTF-8?q?-=20LSsession=20:=20Correction=20des=20m=C3=A9t?= =?UTF-8?q?hodes=20addCssFile()=20et=20addJSscript()=20pour=20=09eviter=20?= =?UTF-8?q?les=20doublons.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- trunk/includes/class/class.LSsession.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/trunk/includes/class/class.LSsession.php b/trunk/includes/class/class.LSsession.php index 8b880765..3dd4ae03 100644 --- a/trunk/includes/class/class.LSsession.php +++ b/trunk/includes/class/class.LSsession.php @@ -822,9 +822,7 @@ class LSsession { 'file' => $file, 'path' => $path ); - if (in_array($script, $this -> JSscripts)) - return; - $this -> JSscripts[]=$script; + $this -> JSscripts[$path.$file]=$script; } /** @@ -853,7 +851,7 @@ class LSsession { 'file' => $file, 'path' => $path ); - $this -> CssFiles[]=$cssFile; + $this -> CssFiles[$path.$file]=$cssFile; } /**