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:
parent
eb64028bb1
commit
c5861e4170
|
|
@ -662,7 +662,7 @@
|
||||||
$view->engine = "smarty";
|
$view->engine = "smarty";
|
||||||
}
|
}
|
||||||
$view->template_dir = $template_dir ."/".$device_template."/";
|
$view->template_dir = $template_dir ."/".$device_template."/";
|
||||||
$view->cache_dir = $_SESSION['server']['temp']['dir'];
|
$view->cache_dir = sys_get_temp_dir();
|
||||||
$view->init();
|
$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
|
//replace the variables in the template in the future loop through all the line numbers to do a replace for each possible line number
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue