aboutsummaryrefslogtreecommitdiff
path: root/ratatoeskr/sys
diff options
context:
space:
mode:
Diffstat (limited to 'ratatoeskr/sys')
-rw-r--r--ratatoeskr/sys/translation.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/ratatoeskr/sys/translation.php b/ratatoeskr/sys/translation.php
index cd40f85..ca43c13 100644
--- a/ratatoeskr/sys/translation.php
+++ b/ratatoeskr/sys/translation.php
@@ -10,6 +10,7 @@
*/
require_once(dirname(__FILE__) . "/models.php");
+require_once(dirname(__FILE__) . "/utils.php");
require_once(dirname(__FILE__) . "/init_ste.php");
if(!defined(TRANSLATION_PLUGIN_LOADED))
@@ -21,7 +22,8 @@ if(!defined(TRANSLATION_PLUGIN_LOADED))
global $translation;
if((!isset($translation)) or empty($params["for"]) or (!isset($translation[$params["for"]])))
return "";
- return $translation[$params["for"]];
+ $rv = $translation[$params["for"]];
+ return (!empty($params["raw"])) ? $rv : htmlesc($rv);
}
);
define(TRANSLATION_PLUGIN_LOADED, True);