- LSsession : Correction des méthodes addCssFile() et addJSscript() pour

eviter les doublons.
This commit is contained in:
Benjamin Renard 2008-11-14 14:14:04 +00:00
parent 5889a817a5
commit 1c0aa2c82e

View file

@ -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;
}
/**