aboutsummaryrefslogtreecommitdiffstats
path: root/_nav/lib.php
diff options
context:
space:
mode:
Diffstat (limited to '_nav/lib.php')
-rw-r--r--_nav/lib.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/_nav/lib.php b/_nav/lib.php
index bde2ee90b..49fe42ee7 100644
--- a/_nav/lib.php
+++ b/_nav/lib.php
@@ -13,9 +13,12 @@ class l10n
* @return void
*/
function load($lang) {
+ global $_t;
+ if (!is_array($_t))
+ $_t = array();
+
$lang_file = __DIR__ . '/langs/' . $lang . '.lang';
if (file_exists($lang_file)) {
- global $_t;
$f = file($lang_file);
foreach ($f as $k => $v) {
if (substr($v, 0, 1) == ';' && !empty($f[$k+1])) {