mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-02 01:52:10 +09:00
issue 2079
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.3.2@11033 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
18bb1ba4bf
commit
4492b4c774
3 changed files with 19 additions and 1 deletions
|
|
@ -407,6 +407,16 @@
|
|||
$rulesetFile = $oModuleModel->getValidatorFilePath($rulesetModule, $ruleset, $this->mid);
|
||||
if(!empty($rulesetFile))
|
||||
{
|
||||
if($_SESSION['XE_VALIDATOR_ERROR_LANG'])
|
||||
{
|
||||
$errorLang = $_SESSION['XE_VALIDATOR_ERROR_LANG'];
|
||||
foreach($errorLang as $key => $val)
|
||||
{
|
||||
Context::setLang($key, $val);
|
||||
}
|
||||
unset($_SESSION['XE_VALIDATOR_ERROR_LANG']);
|
||||
}
|
||||
|
||||
$Validator = new Validator($rulesetFile);
|
||||
$result = $Validator->validate();
|
||||
if(!$result)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue