Skip to content

Commit

Permalink
just commited that .. next I went in the activation/eanable event for…
Browse files Browse the repository at this point in the history
… the other modules I hadn't added that code to them yet either (that sets the status to 1) .. so adding that to them now
  • Loading branch information
detain committed Apr 4, 2019
1 parent 3129cdc commit 3945af7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,11 @@ public static function loadProcessing(GenericEvent $event)
$headers .= 'Content-type: text/html; charset=UTF-8'.PHP_EOL;
$headers .= 'From: '.TITLE.' <'.EMAIL_FROM.'>'.PHP_EOL;
admin_mail($subject, $email, $headers, false, 'admin/domain_created.tpl');
$db->query("select * from queue_log where history_section='".self::$module."order' and history_type='{$serviceInfo[$settings['PREFIX'].'_id']}' and history_new_value=0");
if ($db->num_rows() > 0) {
$db->next_record(MYSQL_ASSOC);
$db->query("update queue_log set history_new_value=1 where history_id='{$db->Record['history_id']}'");
}
})->setReactivate(function ($service) {
$serviceTypes = run_event('get_service_types', false, self::$module);
$serviceInfo = $service->getServiceInfo();
Expand Down

0 comments on commit 3945af7

Please sign in to comment.