From: <on...@us...> - 2002-09-23 21:13:32
|
Update of /cvsroot/xoops/xoops-current/html/modules/system/admin/preferences In directory usw-pr-cvs1:/tmp/cvs-serv7251 Modified Files: preferences.php Log Message: no message Index: preferences.php =================================================================== RCS file: /cvsroot/xoops/xoops-current/html/modules/system/admin/preferences/preferences.php,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** preferences.php 21 Sep 2002 06:26:35 -0000 1.8 --- preferences.php 23 Sep 2002 21:13:29 -0000 1.9 *************** *** 275,284 **** // we may want to move this to somewhere else... if ( $default_theme != $old_theme ) { ! // include Smarty template engine and initialize it ! require_once(SMARTY_DIR."Smarty.class.php"); ! $xoopsTpl = new Smarty(); ! $xoopsTpl->compile_dir = XOOPS_ROOT_PATH."/templates_c"; // clear all compiled files $xoopsTpl->clear_compiled_tpl(); } } --- 275,287 ---- // we may want to move this to somewhere else... if ( $default_theme != $old_theme ) { ! require_once(XOOPS_ROOT_PATH.'/class/xoopstpl.php'); ! $xoopsTpl = new XoopsTpl(); ! $xoopsTpl->setCompileDir(XOOPS_ROOT_PATH.'/templates_c'); // clear all compiled files $xoopsTpl->clear_compiled_tpl(); + if (is_dir(XOOPS_ROOT_PATH.'/cache')) { + $xoopsTpl->setCacheDir(XOOPS_ROOT_PATH.'/cache'); + $xoopsTpl->clear_all_cache(); + } } } |