summaryrefslogtreecommitdiffstats
path: root/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'index.php')
-rw-r--r--index.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/index.php b/index.php
index 8efb21ed..e3d220fc 100644
--- a/index.php
+++ b/index.php
@@ -117,11 +117,13 @@ Page::preprocess();
//$menu = new Menu;
if (User::getName() === false) {
Render::addTemplate('main-menu-login', array(
- 'url' => urlencode($_SERVER['REQUEST_URI'])
+ 'url' => urlencode($_SERVER['REQUEST_URI']),
+ 'langs' => Dictionary::getLanguages(true)
));
} else {
Render::addTemplate('main-menu-logout', array(
'url' => urlencode($_SERVER['REQUEST_URI']),
+ 'langs' => Dictionary::getLanguages(true),
'user' => User::getName()
));
}