Skip to content

Commit a42fcda

Browse files
committed
fixs and improvements to teh history logging
1 parent 58cc3ae commit a42fcda

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Plugin.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public static function loadProcessing(GenericEvent $event)
6969
$settings = get_module_settings(self::$module);
7070
$db = get_module_db(self::$module);
7171
$db->query("update {$settings['TABLE']} set {$settings['PREFIX']}_status='active' where {$settings['PREFIX']}_id='{$serviceInfo[$settings['PREFIX'].'_id']}'", __LINE__, __FILE__);
72-
$GLOBALS['tf']->history->add(self::$module, 'change_status', 'active', $serviceInfo[$settings['PREFIX'].'_id'], $serviceInfo[$settings['PREFIX'].'_custid']);
72+
$GLOBALS['tf']->history->add($settings['TABLE'], 'change_status', 'active', $serviceInfo[$settings['PREFIX'].'_id'], $serviceInfo[$settings['PREFIX'].'_custid']);
7373
$smarty = new \TFSmarty;
7474
$smarty->assign('ssl_hostname', $serviceInfo[$settings['PREFIX'].'_hostname']);
7575
$smarty->assign('ssl_name', $serviceTypes[$serviceInfo[$settings['PREFIX'].'_type']]['services_name']);
@@ -86,7 +86,7 @@ public static function loadProcessing(GenericEvent $event)
8686
$settings = get_module_settings(self::$module);
8787
$db = get_module_db(self::$module);
8888
$db->query("update {$settings['TABLE']} set {$settings['PREFIX']}_status='active' where {$settings['PREFIX']}_id='{$serviceInfo[$settings['PREFIX'].'_id']}'", __LINE__, __FILE__);
89-
$GLOBALS['tf']->history->add(self::$module, 'change_status', 'active', $serviceInfo[$settings['PREFIX'].'_id'], $serviceInfo[$settings['PREFIX'].'_custid']);
89+
$GLOBALS['tf']->history->add($settings['TABLE'], 'change_status', 'active', $serviceInfo[$settings['PREFIX'].'_id'], $serviceInfo[$settings['PREFIX'].'_custid']);
9090
$smarty = new \TFSmarty;
9191
$smarty->assign('ssl_hostname', $serviceInfo[$settings['PREFIX'].'_hostname']);
9292
$smarty->assign('ssl_name', $serviceTypes[$serviceInfo[$settings['PREFIX'].'_type']]['services_name']);

0 commit comments

Comments
 (0)