We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7e3bab5 commit 4d5cbbdCopy full SHA for 4d5cbbd
code/General.class.php
@@ -7,7 +7,7 @@
7
use FormTools\Forms as CoreForms;
8
use FormTools\Views;
9
use FormTools\ViewTabs;
10
-use Smarty;
+use Smarty, SmartyBC;
11
12
13
class General
@@ -47,7 +47,11 @@ public static function createNewSmartyInstance($delimiters = "double")
47
$right_delimiter = "}}";
48
}
49
50
- $smarty = new Smarty();
+ if (method_exists(new Core(), "useSmartyBC")) {
51
+ $smarty = Core::useSmartyBC() ? new SmartyBC() : new Smarty();
52
+ } else {
53
+ $smarty = new Smarty();
54
+ }
55
$smarty->setTemplateDir("$root_dir/themes/default");
56
$smarty->setCompileDir("$root_dir/themes/default/cache/");
57
$smarty->setUseSubDirs(Core::shouldUseSmartySubDirs());
0 commit comments