Skip to content

Commit

Permalink
found and fixed another issue with it , where I was hooiking into was…
Browse files Browse the repository at this point in the history
…nt always called like if ther was a problem during activation it wouldn't have advanced it.. I moved it into the ServiceHandler class so it was only the 1 gblock instead of a block in each modules code.. then I replaced the 2 queries+if+loop with a single query .. so it should work better and is much more optimized now.
  • Loading branch information
detain committed Apr 4, 2019
1 parent 3945af7 commit af8a8f7
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,6 @@ 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 af8a8f7

Please sign in to comment.