mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 01:01:41 +09:00
Fixed a bug that form validator can't display some error message
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9309 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
0d3ca55707
commit
86777cf4f7
2 changed files with 4 additions and 2 deletions
|
|
@ -478,7 +478,7 @@ class Validator
|
|||
// error messages
|
||||
foreach($lang->filter as $key=>$text) {
|
||||
if($text) {
|
||||
$text = addslashes($text);
|
||||
$text = preg_replace('@\r?\n@', '\\n', addslashes($text));
|
||||
$messages[] = "v.cast('ADD_MESSAGE',['{$key}','{$text}']);";
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue