patch by @fugue88 for shared installs

references #328
This commit is contained in:
Garvin Hicking 2015-03-16 17:44:57 +01:00
parent 0fd299adf2
commit 2970ac60a6
2 changed files with 8 additions and 1 deletions

View File

@ -58,6 +58,9 @@ Version 2.1 ()
Version 2.0.2 () 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" * Allow templatechooser plugin to read a custom "blacklist.txt"
within its directory, that can blacklist certain themes from within its directory, that can blacklist certain themes from
being selected. being selected.

View File

@ -146,7 +146,11 @@ class Serendipity_Smarty extends Smarty
$this->setTemplateDir($template_dirs); $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)); $this->setConfigDir(array(S9Y_TEMPLATE_USERDEFAULT));