static private $_singleton = NULL;
/**
- * @var array (string $name => mixed $value) a list of variables ot save temporarily
+ * Backup frames.
+ *
+ * A list of variables ot save temporarily in format (string $name => mixed $value).
+ *
+ * @var array
*/
private $backupFrames = [];
$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);
+ }
+
}