aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRomain d'Alverny <rda@mageia.org>2012-06-11 12:18:12 +0000
committerRomain d'Alverny <rda@mageia.org>2012-06-11 12:18:12 +0000
commit62c35e88653ab292b39eb0971579161801547ad2 (patch)
tree96486a78450ed0e61e857760e3c2c9700772012b
parent6ef9ba5b406b19db2f222668402f0389455b2487 (diff)
downloadwww-62c35e88653ab292b39eb0971579161801547ad2.tar
www-62c35e88653ab292b39eb0971579161801547ad2.tar.gz
www-62c35e88653ab292b39eb0971579161801547ad2.tar.bz2
www-62c35e88653ab292b39eb0971579161801547ad2.tar.xz
www-62c35e88653ab292b39eb0971579161801547ad2.zip
make sure _t is available as a global array
-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])) {