Set the disabled flag so its not permanently pending when disabling domains
This commit is contained in:
parent
36563f7298
commit
a675041874
|
@ -1986,6 +1986,9 @@ class m_dom {
|
||||||
// is it a delete (DISABLED or DELETE)
|
// is it a delete (DISABLED or DELETE)
|
||||||
if ($subdom["web_action"]=="DELETE" || strtoupper(substr($subdom["enable"],0,7))=="DISABLE") {
|
if ($subdom["web_action"]=="DELETE" || strtoupper(substr($subdom["enable"],0,7))=="DISABLE") {
|
||||||
$ret = $hooks->invoke("hook_updatedomains_web_del",array($subdom["id"]));
|
$ret = $hooks->invoke("hook_updatedomains_web_del",array($subdom["id"]));
|
||||||
|
if (strtoupper(substr($subdom["enable"],0,7))=="DISABLE") {
|
||||||
|
$db->query("UPDATE sub_domaines SET enable=\"DISABLED\" WHERE id=?;",array($id));
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
$hooks->invoke("hook_updatedomains_web_before",array($subdom["id"])); // give a chance to get SSL cert before ;)
|
$hooks->invoke("hook_updatedomains_web_before",array($subdom["id"])); // give a chance to get SSL cert before ;)
|
||||||
$ret = $hooks->invoke("hook_updatedomains_web_add",array($subdom["id"]));
|
$ret = $hooks->invoke("hook_updatedomains_web_add",array($subdom["id"]));
|
||||||
|
|
Loading…
Reference in New Issue