Fix provisioning template engine.

Template engine must get the cache directory or it fails to provision. This affected polycom phone provisioning and maybe other phones.
This commit is contained in:
FusionPBX
2024-06-25 20:28:58 -06:00
committed by GitHub
parent eb64028bb1
commit c5861e4170

View File

@@ -662,7 +662,7 @@
$view->engine = "smarty";
}
$view->template_dir = $template_dir ."/".$device_template."/";
$view->cache_dir = $_SESSION['server']['temp']['dir'];
$view->cache_dir = sys_get_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