1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-06 14:46:56 +02:00

Admin Log function fixes. Preference saving details stored correctly.

This commit is contained in:
Cameron
2014-01-10 07:36:54 -08:00
parent d47486d39f
commit b859d1cf8d
7 changed files with 213 additions and 54 deletions

View File

@@ -539,11 +539,29 @@ class admin_log_form_ui extends e_admin_form_ui
function dblog_remarks($curVal,$mode)
{
$frm = e107::getForm();
$tp = e107::getParser();
switch($mode)
{
case 'read': // List Page
return preg_replace_callback("#\[!(\w+?)(=.+?){0,1}!]#", 'log_process', $curVal);
$text = preg_replace_callback("#\[!(\w+?)(=.+?){0,1}!]#", 'log_process', $curVal);
$text = $tp->toHtml($text);
if(strpos($text,'Array')!==false)
{
$id = $this->getController()->getListModel()->get('dblog_id');
$ret ="<a class='e-expandit' href='#".$id."'>Details</a>";
$ret .= "<div class='hide' id='".$id."'>";
$text = str_replace("<br />","\n",$text);
$text = str_replace("&#092;","/",$text);
$text = print_a($text,true);
$ret .= $text;
$ret .= "</div>";
return $ret;
}
return $text;
break;