mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-02-28 13:56:35 +00:00
Fix the provision directory path for those not using /etc/fusionpbx template directory.
This commit is contained in:
@@ -45,6 +45,9 @@ include "root.php";
|
|||||||
if (file_exists('/etc/fusionpbx/templates/provision')) {
|
if (file_exists('/etc/fusionpbx/templates/provision')) {
|
||||||
$this->template_dir = '/etc/fusionpbx/templates/provision';
|
$this->template_dir = '/etc/fusionpbx/templates/provision';
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
$this->template_dir = $_SERVER["DOCUMENT_ROOT"].PROJECT_PATH.'/resources/templates/provision';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case "FreeBSD":
|
case "FreeBSD":
|
||||||
@@ -53,11 +56,17 @@ include "root.php";
|
|||||||
if (strlen($this->template_dir) == 0) {
|
if (strlen($this->template_dir) == 0) {
|
||||||
$this->template_dir = '/usr/local/etc/fusionpbx/templates/provision';
|
$this->template_dir = '/usr/local/etc/fusionpbx/templates/provision';
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
$this->template_dir = $_SERVER["DOCUMENT_ROOT"].PROJECT_PATH.'/resources/templates/provision';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if (strlen($this->template_dir) == 0) {
|
if (strlen($this->template_dir) == 0) {
|
||||||
$this->template_dir = $_SERVER["DOCUMENT_ROOT"].PROJECT_PATH.'/resources/templates/provision';
|
$this->template_dir = $_SERVER["DOCUMENT_ROOT"].PROJECT_PATH.'/resources/templates/provision';
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
$this->template_dir = $_SERVER["DOCUMENT_ROOT"].PROJECT_PATH.'/resources/templates/provision';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case "NetBSD":
|
case "NetBSD":
|
||||||
|
|||||||
Reference in New Issue
Block a user