mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-04 10:43:49 +00:00
updated $view to use the new init function.
This commit is contained in:
@@ -335,10 +335,10 @@ include "resources/classes/template.php";
|
||||
|
||||
//initialize a template object
|
||||
$view = new template();
|
||||
$view->engine = "smarty";
|
||||
$view->engine = "twig";
|
||||
$view->template_dir = $_SERVER["DOCUMENT_ROOT"].PROJECT_PATH."/resources/templates/provision/".$device_template."/";
|
||||
$view->cache_dir = $_SESSION['server']['temp']['dir'];
|
||||
|
||||
$view->init();
|
||||
//replace the variables in the template in the future loop through all the line numbers to do a replace for each possible line number
|
||||
|
||||
//get the time zone
|
||||
@@ -462,7 +462,7 @@ include "resources/classes/template.php";
|
||||
header("Content-Length: ".strlen($file_contents));
|
||||
} else {
|
||||
header("Content-Type: text/xml; charset=utf-8");
|
||||
header("Content-Length: ".strlen($file_contents));
|
||||
header("Content-Length: ".strlen($file_contents));
|
||||
}
|
||||
echo $file_contents;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user