aboutsummaryrefslogtreecommitdiff
path: root/ratatoeskr/sys/translation.php
diff options
context:
space:
mode:
authorLaria Carolin Chabowski <laria@laria.me>2020-09-25 21:24:01 +0200
committerLaria Carolin Chabowski <laria@laria.me>2020-09-25 21:27:43 +0200
commit78c0350b3b7fc025ba565e19bfa195b68e95bb88 (patch)
tree94ac3aba1cba328a7e50bac408e72c269d18d9b4 /ratatoeskr/sys/translation.php
parent60542d424f71347e75e3e43daf964f679cf26aee (diff)
downloadratatoeskr-cms-78c0350b3b7fc025ba565e19bfa195b68e95bb88.tar.gz
ratatoeskr-cms-78c0350b3b7fc025ba565e19bfa195b68e95bb88.tar.bz2
ratatoeskr-cms-78c0350b3b7fc025ba565e19bfa195b68e95bb88.zip
Deprecate htmlesc for Esc::esc
"Stole" this class from another project of mine (micropoly)
Diffstat (limited to 'ratatoeskr/sys/translation.php')
-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 fd494c1..0679ca7 100644
--- a/ratatoeskr/sys/translation.php
+++ b/ratatoeskr/sys/translation.php
@@ -9,6 +9,8 @@
* See "ratatoeskr/licenses/ratatoeskr" for more information.
*/
+use r7r\cms\sys\Esc;
+
require_once(dirname(__FILE__) . "/utils.php");
require_once(dirname(__FILE__) . "/init_ste.php");
@@ -28,7 +30,7 @@ if (!defined("TRANSLATION_PLUGIN_LOADED")) {
return "";
}
$rv = $translation[$params["for"]];
- return (!empty($params["raw"])) ? $rv : htmlesc($rv);
+ return (!empty($params["raw"])) ? $rv : Esc::esc($rv);
}
);
define("TRANSLATION_PLUGIN_LOADED", true);