$this->plugins_dir = [$smartyDir . 'plugins', $pluginsDir];
}
+ $this->compile_check = $this->isCheckSmartyIsCompiled();
+
// add the session and the config here
$session = CRM_Core_Session::singleton();
return 'en_US';
}
+ /**
+ * Get the compile_check value.
+ *
+ * @return bool
+ */
+ private function isCheckSmartyIsCompiled() {
+ // check for define in civicrm.settings.php as FALSE, otherwise returns TRUE
+ return CRM_Utils_Constant::value('CIVICRM_TEMPLATE_COMPILE_CHECK', TRUE);
+ }
+
}