Template engine use sys_get_temp_dir

Used to get the operating system temp directory.
This commit is contained in:
FusionPBX
2024-06-26 07:43:23 -06:00
committed by GitHub
parent c5861e4170
commit cf005c7671
6 changed files with 8 additions and 29 deletions

View File

@@ -75,9 +75,6 @@ class plugin_database {
$domain_array = explode(":", $_SERVER["HTTP_HOST"]);
$domain_name = $domain_array[0];
//temp directory
$_SESSION['server']['temp']['dir'] = '/tmp';
//create token
//$object = new token;
//$token = $object->create('login');
@@ -90,7 +87,7 @@ class plugin_database {
$view = new template();
$view->engine = 'smarty';
$view->template_dir = $_SERVER["DOCUMENT_ROOT"].PROJECT_PATH.'/core/authentication/resources/views/';
$view->cache_dir = $_SESSION['server']['temp']['dir'];
$view->cache_dir = sys_get_temp_dir();
$view->init();
//add translations