diff -r 3ba432f8390b -r a8d108f37363 functions.php --- a/functions.php Sun Mar 23 23:17:06 2008 -0400 +++ b/functions.php Sun Mar 23 23:55:50 2008 -0400 @@ -167,11 +167,12 @@ if ( !isset($smarty[$theme_id]) ) { $smarty[$theme_id] = new Smarty(); - $smarty[$theme_id]->template_dir = "./themes/$theme_id"; - $smarty[$theme_id]->compile_dir = "./themes/$theme_id/compiled"; - $smarty[$theme_id]->cache_dir = "./cache"; + $smarty[$theme_id]->template_dir = GREY_ROOT . "/themes/$theme_id"; + if ( !is_dir("./compiled/$theme_id") ) + @mkdir("./compiled/$theme_id"); + $smarty[$theme_id]->compile_dir = "./compiled/$theme_id"; $smarty[$theme_id]->config_dir = "./config"; - $httpd->add_handler("themes/$theme_id", 'dir', "./themes/$theme_id"); + $httpd->add_handler("themes/$theme_id", 'dir', GREY_ROOT . "/themes/$theme_id"); } return $smarty[$theme_id]; }