mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-28 23:03:25 +09:00
Fixed a bug for client-side validation
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@8841 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
1548d0a54b
commit
8c8f3dc298
3 changed files with 27 additions and 26 deletions
|
|
@ -220,7 +220,7 @@
|
|||
$matches[1] = preg_replace('/'.$m[0].'/i', '', $matches[1]);
|
||||
$matches[2] = '<input type="hidden" name="ruleset" value="'.$m[1].'" />'.$matches[2];
|
||||
|
||||
if(preg_match('@(?:^|/)(modules/[\w-]+)@', $this->path, $mm)) {
|
||||
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');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue