Fixed a bug for client-side validation (again)

git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@8844 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
taggon 2011-08-23 09:15:07 +00:00
parent caf604144d
commit 2255974481

View file

@ -358,7 +358,7 @@ class Validator
$ruleset = basename($this->_xml_path,'.xml');
$content = array();
if(preg_match('@(^|/)files/ruleset/\w+\.xml$@i')) $ruleset = '@'.$ruleset;
if(preg_match('@(^|/)files/ruleset/\w+\.xml$@i', $this->_xml_path)) $ruleset = '@'.$ruleset;
// custom rulesets
foreach($this->_rules as $name=>$rule) {