mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-22 20:02:15 +09:00
Add auto ruleset function
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9982 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
983516dbac
commit
8db1be04bf
7 changed files with 77 additions and 6 deletions
|
|
@ -1151,9 +1151,13 @@ class Context {
|
|||
* @brief Add the js file
|
||||
* @deprecated
|
||||
**/
|
||||
function addJsFile($file, $optimized = false, $targetie = '',$index=0, $type='head', $isRuleset = false) {
|
||||
function addJsFile($file, $optimized = false, $targetie = '',$index=0, $type='head', $isRuleset = false, $autoPath = null) {
|
||||
if($isRuleset)
|
||||
{
|
||||
if (strpos($file, '#') !== false){
|
||||
$file = str_replace('#', '', $file);
|
||||
if (!is_readable($file)) $file = $autoPath;
|
||||
}
|
||||
$validator = new Validator($file);
|
||||
$validator->setCacheDir('files/cache');
|
||||
$file = $validator->getJsPath();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue