issue 369 when ruleset file modified, then ruleset js file must dynamic recreate

this bug fixed
document.controller.php file : indent changed


git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9495 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
ovclas 2011-10-05 09:00:37 +00:00
parent 0016c7963a
commit 5afc0b7587
3 changed files with 28 additions and 21 deletions

View file

@ -1121,7 +1121,14 @@ class Context {
* @brief Add the js file
* @deprecated
**/
function addJsFile($file, $optimized = false, $targetie = '',$index=0, $type='head') {
function addJsFile($file, $optimized = false, $targetie = '',$index=0, $type='head', $isRuleset = false) {
if($isRuleset)
{
$validator = new Validator($file);
$validator->setCacheDir('files/cache');
$file = $validator->getJsPath();
}
is_a($this,'Context')?$self=&$this:$self=&Context::getInstance();
$self->oFrontEndFileHandler->loadFile(array($file, $type, $targetie, $index));
}