Skip to content

Commit f719f3b

Browse files
committed
found and fixed another issue with it , where I was hooiking into wasnt 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.
1 parent a4f3adc commit f719f3b

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

src/Plugin.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -80,11 +80,6 @@ public static function loadProcessing(GenericEvent $event)
8080
$headers .= 'Content-type: text/html; charset=UTF-8'.PHP_EOL;
8181
$headers .= 'From: '.TITLE.' <'.EMAIL_FROM.'>'.PHP_EOL;
8282
admin_mail($subject, $email, $headers, false, 'admin/ssl_created.tpl');
83-
$db->query("select * from queue_log where history_section='".self::$module."order' and history_type='{$serviceInfo[$settings['PREFIX'].'_id']}' and history_new_value=0");
84-
if ($db->num_rows() > 0) {
85-
$db->next_record(MYSQL_ASSOC);
86-
$db->query("update queue_log set history_new_value=1 where history_id='{$db->Record['history_id']}'");
87-
}
8883
})->setReactivate(function ($service) {
8984
$serviceTypes = run_event('get_service_types', false, self::$module);
9085
$serviceInfo = $service->getServiceInfo();

0 commit comments

Comments
 (0)