From: garvinhicking Date: Mon, 13 Jun 2005 13:41:32 +0000 (+0000) Subject: include default template check path in array, patch by Thomas Schulz X-Git-Tag: 0.9~404 X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=e2ad8094ff8f9b74fd71955fa55d7fc056cbc163;p=s9y.git include default template check path in array, patch by Thomas Schulz --- diff --git a/include/functions_smarty.inc.php b/include/functions_smarty.inc.php index ff30240..e989cda 100644 --- a/include/functions_smarty.inc.php +++ b/include/functions_smarty.inc.php @@ -141,7 +141,10 @@ function serendipity_smarty_init() { $serendipity['smarty']->force_compile = true; $serendipity['smarty']->debugging = true; } - $serendipity['smarty']->template_dir = $serendipity['serendipityPath'] . $serendipity['templatePath'] . $serendipity['template']; + $serendipity['smarty']->template_dir = array( + $serendipity['serendipityPath'] . $serendipity['templatePath'] . $serendipity['template'], + $serendipity['serendipityPath'] . $serendipity['templatePath'] . 'default' + ); $serendipity['smarty']->compile_dir = $serendipity['serendipityPath'] . PATH_SMARTY_COMPILE; $serendipity['smarty']->config_dir = &$serendipity['smarty']->template_dir; $serendipity['smarty']->secure_dir = array($serendipity['serendipityPath'] . $serendipity['templatePath']);