Skip to content

Commit

Permalink
more fixs
Browse files Browse the repository at this point in the history
  • Loading branch information
detain committed Jul 2, 2017
1 parent 291584b commit 57fe2a9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion src/Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ public static function getChangeIp(GenericEvent $event) {

public static function getMenu(GenericEvent $event) {
$menu = $event->getSubject();
$module = self::$module;
if ($GLOBALS['tf']->ima == 'admin') {
$menu->add_link(self::$module.'api', 'choice=none.litespeed_list', 'whm/createacct.gif', 'List all LiteSpeed Licenses');
}
Expand Down
2 changes: 1 addition & 1 deletion src/litespeed.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ function activate_litespeed($ipAddress = '', $field1, $field2, $period = 'monthl
myadmin_log('licenses', 'info', "Good, got LiteSpeed serial {$response['LiteSpeed_eService']['serial']}", __LINE__, __FILE__);
} else {
$subject = "Partial or Problematic LiteSpeed Order {$response['LiteSpeed_eService']['license_id']}";
$body = $subject.'<br>'.nl2br(print_r($response, TRUE));
$body = $subject.'<br>'.nl2br(json_encode($response, JSON_PRETTY_PRINT));
admin_mail($subject, $body, FALSE, FALSE, 'admin_email_licenses_error.tpl');
}
return $response;
Expand Down

0 comments on commit 57fe2a9

Please sign in to comment.