Merge pull request #335 from nachtgeist/public
Remove certificate on removal of subdomain, fixes #1596
This commit is contained in:
@@ -268,6 +268,13 @@ if ($page == 'domains'
|
|||||||
);
|
);
|
||||||
Database::pexecute($del_stmt, array('domainid' => $id));
|
Database::pexecute($del_stmt, array('domainid' => $id));
|
||||||
|
|
||||||
|
// remove certificate from domain_ssl_settings, fixes #1596
|
||||||
|
$del_stmt = Database::prepare("
|
||||||
|
DELETE FROM `" . TABLE_PANEL_DOMAIN_SSL_SETTINGS . "`
|
||||||
|
WHERE `domainid` = :domainid"
|
||||||
|
);
|
||||||
|
Database::pexecute($del_stmt, array('domainid' => $id));
|
||||||
|
|
||||||
$log->logAction(ADM_ACTION, LOG_INFO, "deleted domain/subdomains (#" . $result['id'] . ")");
|
$log->logAction(ADM_ACTION, LOG_INFO, "deleted domain/subdomains (#" . $result['id'] . ")");
|
||||||
updateCounters();
|
updateCounters();
|
||||||
inserttask('1');
|
inserttask('1');
|
||||||
|
|||||||
Reference in New Issue
Block a user