aboutsummaryrefslogtreecommitdiff
path: root/ratatoeskr/sys/translation.php
diff options
context:
space:
mode:
authorLaria Carolin Chabowski <laria@laria.me>2020-09-21 21:21:30 +0200
committerLaria Carolin Chabowski <laria@laria.me>2020-09-21 21:30:57 +0200
commit7f4159ac258c501f9666efc465a78cb2aec9d177 (patch)
tree298b4943fb5cd7ecf5f6959bf1b6f47fbc6e557a /ratatoeskr/sys/translation.php
parent9834bfc4dc7f0bbf4020cebb43b03069592bc687 (diff)
downloadratatoeskr-cms-7f4159ac258c501f9666efc465a78cb2aec9d177.tar.gz
ratatoeskr-cms-7f4159ac258c501f9666efc465a78cb2aec9d177.tar.bz2
ratatoeskr-cms-7f4159ac258c501f9666efc465a78cb2aec9d177.zip
Code cleanup
- Remove unused variables - Remove unused utility functions - Asserting presence and typehinting global variables - Remove unused variables - Add missing global - Add parameter type constraint - Fix some references to nonexisting variables
Diffstat (limited to 'ratatoeskr/sys/translation.php')
-rw-r--r--ratatoeskr/sys/translation.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/ratatoeskr/sys/translation.php b/ratatoeskr/sys/translation.php
index 5a763ce..fd494c1 100644
--- a/ratatoeskr/sys/translation.php
+++ b/ratatoeskr/sys/translation.php
@@ -12,6 +12,9 @@
require_once(dirname(__FILE__) . "/utils.php");
require_once(dirname(__FILE__) . "/init_ste.php");
+/** @var \ste\STECore $ste */
+assert(isset($ste));
+
if (!defined("SETUP")) {
require_once(dirname(__FILE__) . "/models.php");
}