fixed Smarty const check

This commit is contained in:
Ian 2012-04-17 11:37:53 +02:00
parent d8bcff11a7
commit 54e310b1e4

View File

@ -1577,7 +1577,7 @@ class serendipity_plugin
$tfile = dirname($this->pluginFile) . '/' . $filename;
}
if( !SMARTY_VERSION ) {
if( !defined('Smarty::SMARTY_VERSION') ) {
$inclusion = $serendipity['smarty']->security_settings[@INCLUDE_ANY];
$serendipity['smarty']->security_settings[@INCLUDE_ANY] = true;
$content = $serendipity['smarty']->fetch('file:'. $tfile);