From f039ca92fa123293e1ec8a4c46b003766cea556b Mon Sep 17 00:00:00 2001 From: ralph Date: Fri, 30 Nov 2012 15:16:14 -0400 Subject: [PATCH] Adding Smarty Verify & make conf/cache dirs, util devs get a better solution --- workflow/public_html/sysGeneric.php | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/workflow/public_html/sysGeneric.php b/workflow/public_html/sysGeneric.php index 6b0549096..0f7f043b5 100755 --- a/workflow/public_html/sysGeneric.php +++ b/workflow/public_html/sysGeneric.php @@ -175,15 +175,10 @@ if (file_exists( FILE_PATHS_INSTALLED )) { // smarty constants define( 'PATH_SMARTY_C', PATH_C . 'smarty' . PATH_SEP . 'c' ); define( 'PATH_SMARTY_CACHE', PATH_C . 'smarty' . PATH_SEP . 'cache' ); -/* To do: - if (! is_dir( PATH_SMARTY_C )) { - G::mk_dir( PATH_SMARTY_C ); - } - - if (! is_dir( PATH_SMARTY_CACHE )) { - G::mk_dir( PATH_SMARTY_CACHE ); - } - */ + + /* TO DO: put these line in other part of code*/ + Bootstrap::verifyPath ( PATH_SMARTY_C, true ); + Bootstrap::verifyPath ( PATH_SMARTY_CACHE, true ); } // set include path