diff options
Diffstat (limited to 'ratatoeskr/sys')
-rw-r--r-- | ratatoeskr/sys/init_ste.php | 2 | ||||
-rw-r--r-- | ratatoeskr/sys/translation.php | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/ratatoeskr/sys/init_ste.php b/ratatoeskr/sys/init_ste.php index ae5cb95..6152683 100644 --- a/ratatoeskr/sys/init_ste.php +++ b/ratatoeskr/sys/init_ste.php @@ -23,7 +23,7 @@ if(!isset($ste)) * The global STECore (Stupid Template Engine) instance. */ $ste = new \ste\STECore(new \ste\FilesystemStorageAccess("$tpl_basedir/src", "$tpl_basedir/transc")); - if(__DEBUG__) + if(defined("__DEBUG__") && __DEBUG__) $ste->mute_runtime_errors = False; } diff --git a/ratatoeskr/sys/translation.php b/ratatoeskr/sys/translation.php index 6c494db..1104bdb 100644 --- a/ratatoeskr/sys/translation.php +++ b/ratatoeskr/sys/translation.php @@ -15,7 +15,7 @@ require_once(dirname(__FILE__) . "/init_ste.php"); if(!defined("SETUP")) require_once(dirname(__FILE__) . "/models.php"); -if(!defined(TRANSLATION_PLUGIN_LOADED)) +if(!defined("TRANSLATION_PLUGIN_LOADED")) { $ste->register_tag( "get_translation", @@ -28,7 +28,7 @@ if(!defined(TRANSLATION_PLUGIN_LOADED)) return (!empty($params["raw"])) ? $rv : htmlesc($rv); } ); - define(TRANSLATION_PLUGIN_LOADED, True); + define("TRANSLATION_PLUGIN_LOADED", True); } /* |