Update footer.php

Use sys_get_temp_dir() to get the temp directory
This commit is contained in:
FusionPBX 2024-06-25 19:53:47 -06:00 committed by GitHub
parent 49b2505f0c
commit eb4104bd9a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -71,7 +71,7 @@
$view = new template();
$view->engine = 'smarty';
$view->template_dir = $_SERVER['DOCUMENT_ROOT'].PROJECT_PATH.'/themes/'.$_SESSION['domain']['template']['name'].'/';
$view->cache_dir = $_SESSION['server']['temp']['dir'] ?: sys_get_temp_dir();
$view->cache_dir = sys_get_temp_dir();
$view->init();
//add multi-lingual support
@ -292,4 +292,4 @@
//$statsauth = "a3az349x2bf3fdfa8dbt7x34fas5X";
//require_once "stats/stat_sadd.php";
?>
?>