From 7d52e00a51450bc4a080d4e21b7dda02c0a65191 Mon Sep 17 00:00:00 2001
From: Marius Cramer <m.cramer@pixcept.de>
Date: Thu, 14 Nov 2013 05:42:06 -0500
Subject: [PATCH] Fixed list sorting
---
interface/web/nav.php | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/interface/web/nav.php b/interface/web/nav.php
index 0c57adb..909392f 100644
--- a/interface/web/nav.php
+++ b/interface/web/nav.php
@@ -45,6 +45,7 @@
/*
* If the dashboard is in the list of modules it always has to be the first!
*/
+ asort($modules);
if (in_array('dashboard', $modules)) {
$key = array_search('dashboard', $modules);
unset($modules[$key]);
@@ -55,6 +56,8 @@
if(is_file($mt.'/lib/module.conf.php')) {
if(!preg_match("/^[a-z]{2,20}$/i", $mt)) die('module name contains unallowed chars.');
include_once($mt.'/lib/module.conf.php');
+ $language = (isset($_SESSION['s']['user']['language']))?$_SESSION['s']['user']['language']:$conf['language'];
+ $app->load_language_file('web/'.$mt.'/lib/'.$language.'.lng');
$active = ($module['name'] == $_SESSION['s']['module']['name']) ? 1 : 0;
$topnav[] = array( 'title' => $app->lng($module['title']),
'active' => $active,
--
Gitblit v1.9.1