1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-19 12:51:52 +02:00

refined validator message building

This commit is contained in:
secretr
2012-04-03 14:37:48 +00:00
parent 049a315d88
commit 4e131c2c50
2 changed files with 3 additions and 3 deletions

View File

@@ -776,8 +776,8 @@ class e_validator
$dbgmsg = false;
if($err_message)
{
$lan = (strpos($err_message, '%1$s') !== false ? '' : '<strong>&quot;%1$s&quot;</strong> - ').$err_message; // custom, e.g. // default '<strong>&quot;%1$s&quot;</strong> field error: Custom error message. '
$dbgmsg = LAN_VALIDATE_FAILMSG;
$lan = (!$field_title || strpos($err_message, '%1$s') !== false ? '' : '<strong>&quot;%1$s&quot;</strong> - ').$err_message; // custom, e.g. // default '<strong>&quot;%1$s&quot;</strong> field error: Custom error message. '
$dbgmsg = LAN_VALIDATE_FAILMSG;var_dump($lan);
}
//Core message