Skip to content

Commit 0956615

Browse files
committed
more updates removing set db module calls
1 parent 5a93b73 commit 0956615

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

src/api.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,6 @@ function api_cancel_license_ip($sid, $ip, $service_type)
3939
$service_type = (int)$service_type;
4040
myadmin_log('api', 'info', "api_cancel_license_ip('{$sid}', '{$ip}', {$service_type}) called", __LINE__, __FILE__);
4141
$module = 'licenses';
42-
$GLOBALS['tf']->accounts->set_db_module($module);
43-
$GLOBALS['tf']->history->set_db_module($module);
4442
$db = get_module_db($module);
4543
$ip = $db->real_escape($ip);
4644
$settings = get_module_settings($module);
@@ -111,8 +109,6 @@ function api_cancel_license($sid, $id)
111109
{
112110
$module = 'licenses';
113111
$id = (int)$id;
114-
$GLOBALS['tf']->accounts->set_db_module($module);
115-
$GLOBALS['tf']->history->set_db_module($module);
116112
$db = get_module_db($module);
117113
$settings = get_module_settings($module);
118114
$return = [];
@@ -205,8 +201,6 @@ function api_buy_license($sid, $ip, $service_type, $coupon = '', $use_prepay = n
205201
5001 => 5014,
206202
5002 => 5009
207203
];
208-
$GLOBALS['tf']->accounts->set_db_module($module);
209-
$GLOBALS['tf']->history->set_db_module($module);
210204
$GLOBALS['tf']->session->sessionid = $sid;
211205
if ($GLOBALS['tf']->session->verify()) {
212206
// Read there account data

0 commit comments

Comments
 (0)