[fix] missing global in apache conf
This commit is contained in:
parent
e06e2b3abd
commit
230d3ffdd8
|
@ -106,6 +106,7 @@ class m_apache {
|
||||||
* launched for each FQDN for which we want to delete a vhost template
|
* launched for each FQDN for which we want to delete a vhost template
|
||||||
*/
|
*/
|
||||||
function hook_updatedomains_web_del($subdomid) {
|
function hook_updatedomains_web_del($subdomid) {
|
||||||
|
global $db;
|
||||||
$db->query("SELECT sd.*, dt.only_dns, dt.has_https_option, m.login FROM domaines_type dt, sub_domaines sd LEFT JOIN membres m ON m.uid=sd.compte WHERE dt.name=sd.type AND sd.web_action!='OK' AND id=?;",array($subdomid));
|
$db->query("SELECT sd.*, dt.only_dns, dt.has_https_option, m.login FROM domaines_type dt, sub_domaines sd LEFT JOIN membres m ON m.uid=sd.compte WHERE dt.name=sd.type AND sd.web_action!='OK' AND id=?;",array($subdomid));
|
||||||
$db->next_record();
|
$db->next_record();
|
||||||
$subdom=$db->Record;
|
$subdom=$db->Record;
|
||||||
|
|
|
@ -394,7 +394,7 @@ INSTR(CONCAT(sd.sub,IF(sd.sub!='','.',''),sd.domaine),'.')+1))=?
|
||||||
$chain=false;
|
$chain=false;
|
||||||
|
|
||||||
return array(
|
return array(
|
||||||
"cert" => self::KEY_REPOSITORY."/".floor($id/1000)."/".$id.".cert",
|
"cert" => self::KEY_REPOSITORY."/".floor($id/1000)."/".$id.".pem",
|
||||||
"key" => self::KEY_REPOSITORY."/".floor($id/1000)."/".$id.".key",
|
"key" => self::KEY_REPOSITORY."/".floor($id/1000)."/".$id.".key",
|
||||||
"chain" => $chain
|
"chain" => $chain
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue