Skip to content

Commit 4da6afe

Browse files
committed
updates migrating off global tf handler to the MyAdminApp class handler
1 parent 7c88b0e commit 4da6afe

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($settings['TABLE'], 'change_status', 'active', $serviceInfo[$settings['PREFIX'].'_id'], $serviceInfo[$settings['PREFIX'].'_custid']);
72+
\MyAdmin\App::history()->add($settings['TABLE'], 'change_status', 'active', $serviceInfo[$settings['PREFIX'].'_id'], $serviceInfo[$settings['PREFIX'].'_custid']);
7373
$smarty = new \TFSmarty();
7474
$smarty->assign('domain_hostname', $serviceInfo[$settings['PREFIX'].'_hostname']);
7575
$smarty->assign('domain_name', $serviceTypes[$serviceInfo[$settings['PREFIX'].'_type']]['services_name']);
@@ -82,7 +82,7 @@ public static function loadProcessing(GenericEvent $event)
8282
$settings = get_module_settings(self::$module);
8383
$db = get_module_db(self::$module);
8484
$db->query("update {$settings['TABLE']} set {$settings['PREFIX']}_status='active' where {$settings['PREFIX']}_id='{$serviceInfo[$settings['PREFIX'].'_id']}'", __LINE__, __FILE__);
85-
$GLOBALS['tf']->history->add($settings['TABLE'], 'change_status', 'active', $serviceInfo[$settings['PREFIX'].'_id'], $serviceInfo[$settings['PREFIX'].'_custid']);
85+
\MyAdmin\App::history()->add($settings['TABLE'], 'change_status', 'active', $serviceInfo[$settings['PREFIX'].'_id'], $serviceInfo[$settings['PREFIX'].'_custid']);
8686
$smarty = new \TFSmarty();
8787
$smarty->assign('domain_hostname', $serviceInfo[$settings['PREFIX'].'_hostname']);
8888
$smarty->assign('domain_name', $serviceTypes[$serviceInfo[$settings['PREFIX'].'_type']]['services_name']);

0 commit comments

Comments
 (0)