Skip to content

Commit

Permalink
myadmin_log improvement updates
Browse files Browse the repository at this point in the history
  • Loading branch information
detain committed Mar 6, 2019
1 parent fc699b1 commit feb876d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public static function doEnable(\ServiceHandler $serviceOrder, $repeatInvoiceId,
$serviceTypes = run_event('get_service_types', false, self::$module);
$settings = get_module_settings(self::$module);
require_once __DIR__.'/../../../../include/licenses/license.functions.inc.php';
myadmin_log(self::$module, 'info', self::$name.' Activation', __LINE__, __FILE__);
myadmin_log(self::$module, 'info', self::$name.' Activation', __LINE__, __FILE__, self::$module, $serviceInfo[$settings['PREFIX'].'_id']);
function_requirements('get_cpanel_license_data_by_ip');
$serviceExtra = get_cpanel_license_data_by_ip($serviceInfo[$settings['PREFIX'].'_ip']);
// check if activated,if not then activate cpanel license
Expand All @@ -103,7 +103,7 @@ public static function doDisable(\ServiceHandler $serviceOrder, $repeatInvoiceId
$serviceInfo = $serviceOrder->getServiceInfo();
$settings = get_module_settings(self::$module);
require_once __DIR__.'/../../../../include/licenses/license.functions.inc.php';
myadmin_log(self::$module, 'info', self::$name.' Deactivation', __LINE__, __FILE__, self::$module);
myadmin_log(self::$module, 'info', self::$name.' Deactivation', __LINE__, __FILE__, self::$module, $serviceInfo[$settings['PREFIX'].'_id']);
function_requirements('get_cpanel_license_data_by_ip');
$serviceExtra = get_cpanel_license_data_by_ip($serviceInfo[$settings['PREFIX'].'_ip']);
// check if activated,if so then deactivate cpanel license
Expand Down

0 comments on commit feb876d

Please sign in to comment.