OEmbed: Reverted Smarty Security Disabling

This commit is contained in:
Grischa Brockhaus 2011-12-19 11:20:28 +01:00
parent ff101db677
commit 9e4120d231

View file

@ -18,12 +18,14 @@ class OEmbedTemplater {
$inclusion = $serendipity['smarty']->security_settings[@INCLUDE_ANY];
$serendipity['smarty']->security_settings[@INCLUDE_ANY] = true;
/*
if (version_compare($serendipity['version'], '1.7-alpha1')>=0) {
$serendipity['smarty']->disableSecurity();
}
else {
$serendipity['smarty']->security = false;
}
*/
// be smarty 3 compat including the serendipity_smarty class wrappers ->fetch and ->display methods and remove changed parameter number 4
$content = @$serendipity['smarty']->fetch('file:'. $tfile);//, false