- Added private method _replaceKeys to controller system/Messages.php

- Fixed replacement of keys in the message vars array
This commit is contained in:
Paolo
2019-02-15 15:30:04 +01:00
parent f3bc764930
commit a913482ef4
2 changed files with 22 additions and 14 deletions
+1 -9
View File
@@ -750,15 +750,7 @@ class MessageLib
*/
public function parseMessageText($text, $data = array())
{
$tmpData = array();
// Replaces data array keys to a lowercase without spaces string
foreach ($data as $key => $val)
{
$tmpData[str_replace(' ', '_', strtolower($key))] = $data[$key];
}
return $this->_ci->parser->parse_string($text, $tmpData, true);
return $this->_ci->parser->parse_string($text, $data, true);
}
/**