From edaa7c5d66ef52eec1c15f79ae4034fc3e67b9b7 Mon Sep 17 00:00:00 2001 From: tbrehm <t.brehm@ispconfig.org> Date: Thu, 25 Oct 2012 10:29:39 -0400 Subject: [PATCH] - Fixed: FS#2502 - Problem in web traffic accounting for large integers - Added intval function from interface functions library to server system library. --- interface/web/nav.php | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/interface/web/nav.php b/interface/web/nav.php index 423f57e..909392f 100644 --- a/interface/web/nav.php +++ b/interface/web/nav.php @@ -56,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