smarty3 prep
This commit is contained in:
parent
fd480a58d4
commit
334e7a9ba6
@ -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');
|
||||
|
Loading…
x
Reference in New Issue
Block a user