Adding Smarty Verify & make conf/cache dirs, util devs get a better solution

This commit is contained in:
ralph
2012-11-30 15:16:14 -04:00
parent f8b7ca3a45
commit f039ca92fa

View File

@@ -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