mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-11-22 18:09:06 +01:00
LSsession::startLStemplate() : added check to verify that smarty's compile dir is writable.
This commit is contained in:
parent
2057f8318e
commit
dae3178ac9
1 changed files with 3 additions and 0 deletions
|
@ -133,6 +133,9 @@ class LSsession {
|
||||||
$GLOBALS['Smarty'] = new Smarty();
|
$GLOBALS['Smarty'] = new Smarty();
|
||||||
$GLOBALS['Smarty'] -> template_dir = LS_TEMPLATES_DIR;
|
$GLOBALS['Smarty'] -> template_dir = LS_TEMPLATES_DIR;
|
||||||
$GLOBALS['Smarty'] -> compile_dir = LS_TMP_DIR;
|
$GLOBALS['Smarty'] -> compile_dir = LS_TMP_DIR;
|
||||||
|
if ( ! is_writable(LS_TMP_DIR) ) {
|
||||||
|
die('Smarty compile directory is not writable (dir : '.LS_TMP_DIR.')');
|
||||||
|
}
|
||||||
|
|
||||||
if (LSdebug) {
|
if (LSdebug) {
|
||||||
$GLOBALS['Smarty'] -> caching = 0;
|
$GLOBALS['Smarty'] -> caching = 0;
|
||||||
|
|
Loading…
Reference in a new issue