smarty3 prep

This commit is contained in:
Garvin Hicking 2011-01-07 10:21:02 +00:00
parent fd480a58d4
commit 334e7a9ba6

View File

@ -919,6 +919,14 @@ function serendipity_smarty_init($vars = array()) {
$serendipity['smarty']->compile_check = true;
$serendipity['smarty']->compile_id = &$serendipity['template'];
if (strpos($serendipity['smarty']->_version, '2', 1)) {
$serendipity['smarty']->setDeprecationNotices(false); // set $smarty->deprecation_notices
#$serendipity['smarty']->setCaching(true); // set $smarty->caching to not being regenerated
#$serendipity['smarty']->force_compile = false; // override compile_check (default:false)
#$serendipity['smarty']->error_reporting = E_ALL & ~E_NOTICE;
#$serendipity['smarty']->auto_literal = false;
}
$serendipity['smarty']->register_modifier('makeFilename', 'serendipity_makeFilename');
$serendipity['smarty']->register_modifier('xhtml_target', 'serendipity_xhtml_target');
$serendipity['smarty']->register_modifier('emptyPrefix', 'serendipity_emptyPrefix');