aboutsummaryrefslogtreecommitdiff
path: root/ratatoeskr/sys/translation.php
diff options
context:
space:
mode:
authorLaria Carolin Chabowski <laria@laria.me>2020-09-21 21:20:42 +0200
committerLaria Carolin Chabowski <laria@laria.me>2020-09-21 21:30:57 +0200
commit9834bfc4dc7f0bbf4020cebb43b03069592bc687 (patch)
tree0e237c9e01f81dd754f27a4132442fa7b057c1dc /ratatoeskr/sys/translation.php
parent13b11317f7acd705a6ef1bb05a520879eb1b9c86 (diff)
downloadratatoeskr-cms-9834bfc4dc7f0bbf4020cebb43b03069592bc687.tar.gz
ratatoeskr-cms-9834bfc4dc7f0bbf4020cebb43b03069592bc687.tar.bz2
ratatoeskr-cms-9834bfc4dc7f0bbf4020cebb43b03069592bc687.zip
Return translation array from include
Much better the the implied variable that gets set by the include!
Diffstat (limited to 'ratatoeskr/sys/translation.php')
-rw-r--r--ratatoeskr/sys/translation.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/ratatoeskr/sys/translation.php b/ratatoeskr/sys/translation.php
index 30f32e3..5a763ce 100644
--- a/ratatoeskr/sys/translation.php
+++ b/ratatoeskr/sys/translation.php
@@ -58,7 +58,7 @@ function load_language($lang=null)
*/
$lang = implode("", array_filter(str_split($lang, 1), "ctype_alpha"));
- require(dirname(__FILE__) . "/../translations/$lang.php");
+ $translation = require(dirname(__FILE__) . "/../translations/$lang.php");
$GLOBALS["translation"] = $translation;
}