mirror of
https://github.com/salesagility/SuiteCRM.git
synced 2025-02-06 23:10:03 +00:00
acf296012d
This reverts commitd08f74643d
, reversing changes made tob137595f91
.
11 lines
378 B
PHP
11 lines
378 B
PHP
<?php
|
|
|
|
use SuiteCRM\ErrorMessage;
|
|
|
|
function smarty_function_log($params, &$smarty) {
|
|
$from = $smarty->_plugins['function']['log'][1] . ':' . $smarty->_plugins['function']['log'][2];
|
|
$message = "log call at: $from - " . $params['msg'];
|
|
$level = isset($params['level']) ? $params['level'] : ErrorMessage::DEFAULT_LOG_LEVEL;
|
|
ErrorMessage::log($message, $level);
|
|
}
|
|
|