Skip to content

Commit 4d5cbbd

Browse files
committed
closes #19
1 parent 7e3bab5 commit 4d5cbbd

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

code/General.class.php

+6-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
use FormTools\Forms as CoreForms;
88
use FormTools\Views;
99
use FormTools\ViewTabs;
10-
use Smarty;
10+
use Smarty, SmartyBC;
1111

1212

1313
class General
@@ -47,7 +47,11 @@ public static function createNewSmartyInstance($delimiters = "double")
4747
$right_delimiter = "}}";
4848
}
4949

50-
$smarty = new Smarty();
50+
if (method_exists(new Core(), "useSmartyBC")) {
51+
$smarty = Core::useSmartyBC() ? new SmartyBC() : new Smarty();
52+
} else {
53+
$smarty = new Smarty();
54+
}
5155
$smarty->setTemplateDir("$root_dir/themes/default");
5256
$smarty->setCompileDir("$root_dir/themes/default/cache/");
5357
$smarty->setUseSubDirs(Core::shouldUseSmartySubDirs());

0 commit comments

Comments
 (0)