diff options
author | Laria Carolin Chabowski <laria@laria.me> | 2020-09-25 21:24:01 +0200 |
---|---|---|
committer | Laria Carolin Chabowski <laria@laria.me> | 2020-09-25 21:27:43 +0200 |
commit | 78c0350b3b7fc025ba565e19bfa195b68e95bb88 (patch) | |
tree | 94ac3aba1cba328a7e50bac408e72c269d18d9b4 /ratatoeskr/sys/translation.php | |
parent | 60542d424f71347e75e3e43daf964f679cf26aee (diff) | |
download | ratatoeskr-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.php | 4 |
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); |