diff --git a/docs/NEWS b/docs/NEWS index e4aa6249..630bcd1e 100644 --- a/docs/NEWS +++ b/docs/NEWS @@ -58,6 +58,9 @@ Version 2.1 () Version 2.0.2 () ------------------------------------------------------------------------ + * Implement patch to properly initiate templates_c on installation + for shared installs (thanks to fugue88) + * Allow templatechooser plugin to read a custom "blacklist.txt" within its directory, that can blacklist certain themes from being selected. diff --git a/include/serendipity_smarty_class.inc.php b/include/serendipity_smarty_class.inc.php index d634e24f..840298dd 100644 --- a/include/serendipity_smarty_class.inc.php +++ b/include/serendipity_smarty_class.inc.php @@ -146,7 +146,11 @@ class Serendipity_Smarty extends Smarty $this->setTemplateDir($template_dirs); - $this->setCompileDir($serendipity['serendipityPath'] . PATH_SMARTY_COMPILE); + if (defined('S9Y_DATA_PATH')) { + $this->setCompileDir(S9Y_DATA_PATH . PATH_SMARTY_COMPILE); + } else { + $this->setCompileDir($serendipity['serendipityPath'] . PATH_SMARTY_COMPILE); + } $this->setConfigDir(array(S9Y_TEMPLATE_USERDEFAULT));