- Bug fix in MessageLib

- Now is possible to send a message to more recipients from FAS
- Can be used the variables substitution from FAS
This commit is contained in:
bison-paolo
2017-03-02 15:47:17 +01:00
parent d8bb1ae500
commit e7be37708d
5 changed files with 253 additions and 32 deletions
+11 -3
View File
@@ -265,12 +265,12 @@ class MessageLib
}
else
{
if (!empty($subject))
if (empty($subject))
{
$result = $this->_error('', MSG_ERR_SUBJECT_EMPTY);
break;
}
else if (!empty($body))
else if (empty($body))
{
$result = $this->_error('', MSG_ERR_BODY_EMPTY);
break;
@@ -884,4 +884,12 @@ class MessageLib
{
return success($retval, $code, MessageLib::MSG_INDX_PREFIX);
}
}
/**
*
*/
public function parseMessageText($text, $data = array())
{
return $this->ci->parser->parse_string($text, $data, true);
}
}