1
0

use tpl dir and smarty3 short notation fetch() method

This commit is contained in:
Ian
2012-02-17 18:33:10 +01:00
parent 506652293e
commit ba518b7864
8 changed files with 10 additions and 21 deletions

View File

@ -201,12 +201,9 @@ if (!is_object($serendipity['smarty'])) {
$serendipity['smarty']->assign($data);
$tfile = dirname(__FILE__) . "/category.inc.tpl";
$tfile = dirname(__FILE__) . "/tpl/category.inc.tpl";
$inclusion = $serendipity['smarty']->security_settings[INCLUDE_ANY];
$serendipity['smarty']->security_settings[INCLUDE_ANY] = true;
$content = $serendipity['smarty']->fetch('file:'. $tfile);
$serendipity['smarty']->security_settings[INCLUDE_ANY] = $inclusion;
$content = $serendipity['smarty']->fetch('file:'. $tfile); // short notation with Smarty3 in S9y 1.7 and up
echo $content;