mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-22 05:15:29 +09:00
modify js validator
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@8786 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
3b2292a5be
commit
fc77c57b3c
1 changed files with 7 additions and 0 deletions
|
|
@ -219,6 +219,13 @@
|
||||||
{
|
{
|
||||||
$matches[1] = preg_replace('/'.$m[0].'/i', '', $matches[1]);
|
$matches[1] = preg_replace('/'.$m[0].'/i', '', $matches[1]);
|
||||||
$matches[2] = '<input type="hidden" name="ruleset" value="'.$m[1].'" />'.$matches[2];
|
$matches[2] = '<input type="hidden" name="ruleset" value="'.$m[1].'" />'.$matches[2];
|
||||||
|
|
||||||
|
if(preg_match('@(?:^|/)(modules/[\w-]+)@', $this->path, $mm)) {
|
||||||
|
$module_path = $mm[1];
|
||||||
|
$validator = new Validator("{$module_path}/ruleset/{$m[1]}.xml");
|
||||||
|
$validator->setCacheDir('files/cache');
|
||||||
|
$matches[1] = '<?php Context::addJsFile("'.$validator->getJsPath().'") ?'.'>'.$matches[1];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue