proper logic

This commit is contained in:
Garvin Hicking 2011-01-08 22:33:12 +00:00
parent acc2ccb7f0
commit ede31de958

View File

@ -919,7 +919,7 @@ function serendipity_smarty_init($vars = array()) {
$serendipity['smarty']->compile_check = true;
$serendipity['smarty']->compile_id = &$serendipity['template'];
if (strpos($serendipity['smarty']->_version, '2', 1)) {
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)