mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-15 14:02:17 +00:00
- Added private method _replaceKeys to controller system/Messages.php
- Fixed replacement of keys in the message vars array
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user