diff options
Diffstat (limited to 'inc/dictionary.inc.php')
-rw-r--r-- | inc/dictionary.inc.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/inc/dictionary.inc.php b/inc/dictionary.inc.php index ee613d0b..3a2f9c2b 100644 --- a/inc/dictionary.inc.php +++ b/inc/dictionary.inc.php @@ -1,5 +1,7 @@ <?php +declare(strict_types=1); + class Dictionary { @@ -100,6 +102,8 @@ class Dictionary if ($lang === null) $lang = LANG; $path = Util::safePath("modules/{$module}/lang/{$lang}/{$file}.json"); + if ($path === null) + ErrorHandler::traceError("Invalid path"); if (isset(self::$stringCache[$path])) return self::$stringCache[$path]; if (!file_exists($path)) |