mirror of
https://github.com/e107inc/e107.git
synced 2025-08-01 20:30:39 +02:00
Admin log description corrected.
This commit is contained in:
@@ -558,22 +558,37 @@ class admin_log_form_ui extends e_admin_form_ui
|
|||||||
// Custom Method/Function
|
// Custom Method/Function
|
||||||
function dblog_title($curVal,$mode)
|
function dblog_title($curVal,$mode)
|
||||||
{
|
{
|
||||||
|
$tp = e107::getParser();
|
||||||
|
|
||||||
switch($mode)
|
switch($mode)
|
||||||
{
|
{
|
||||||
case 'read': // List Page
|
case 'read': // List Page
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$val = trim($curVal);
|
$val = trim($curVal);
|
||||||
if(defined($val))
|
if(defined($val))
|
||||||
{
|
{
|
||||||
$val = constant($val);
|
$val = constant($val);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(strpos($val,'[x]') !== false)
|
||||||
|
{
|
||||||
|
$remark = $this->getController()->getListModel()->get('dblog_remarks');
|
||||||
|
preg_match("/\[table\]\s=>\s([\w]*)/i",$remark, $match);
|
||||||
|
|
||||||
|
if(!empty($match[1]))
|
||||||
|
{
|
||||||
|
$val = $tp->lanVars($val, '<b>'.$match[1].'</b>');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return $val;
|
return $val;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'filter':
|
case 'filter':
|
||||||
case 'batch':
|
case 'batch':
|
||||||
return $array;
|
return null;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user