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:28:37 -06:00
committed by GitHub
parent 7d2941124e
commit efce99375b
4 changed files with 6 additions and 6 deletions

View File

@@ -92,7 +92,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