From 3270d25512ba3e6112d6ab4efb837cf40955cd83 Mon Sep 17 00:00:00 2001 From: Cameron Date: Thu, 9 Apr 2015 20:42:14 -0700 Subject: [PATCH] Admin log description corrected. --- e107_admin/admin_log.php | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/e107_admin/admin_log.php b/e107_admin/admin_log.php index 78c4e872c..e988d33fc 100644 --- a/e107_admin/admin_log.php +++ b/e107_admin/admin_log.php @@ -558,22 +558,37 @@ class admin_log_form_ui extends e_admin_form_ui // Custom Method/Function function dblog_title($curVal,$mode) { - + $tp = e107::getParser(); switch($mode) { case 'read': // List Page + + + $val = trim($curVal); if(defined($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, ''.$match[1].''); + } + } + return $val; break; case 'filter': case 'batch': - return $array; + return null; break; } }