Author:   Lars Michelsen <[email protected]>
Date:     Sun Feb 27 01:52:08 2011 +0100
Committer:   Lars Michelsen <[email protected]>
Commit-Date: Sun Feb 27 01:52:08 2011 +0100

Removing lang= parameter from currentUi macro to prevent several lang 
parameters when switching languages several times

---

 .../nagvis-js/classes/NagVisHeaderMenu.php         |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/share/frontend/nagvis-js/classes/NagVisHeaderMenu.php 
b/share/frontend/nagvis-js/classes/NagVisHeaderMenu.php
index 1add13f..f5a4183 100644
--- a/share/frontend/nagvis-js/classes/NagVisHeaderMenu.php
+++ b/share/frontend/nagvis-js/classes/NagVisHeaderMenu.php
@@ -273,7 +273,7 @@ class NagVisHeaderMenu {
                
                // Replace paths and language macros
                $aReturn = Array('pathBase' => $this->pathHtmlBase,
-                       'currentUri'         => 
$this->UHANDLER->getRequestUri(), 
+                       'currentUri'         => 
preg_replace('/[&?]lang=[a-z]{2}_[A-Z]{2}/', '', 
$this->UHANDLER->getRequestUri()),
                        'pathImages'         => 
$this->CORE->getMainCfg()->getValue('paths','htmlimages'), 
                        'pathHeaderJs'       => 
$this->CORE->getMainCfg()->getPath('html', 'global', 'templates', 
$this->templateName.'.header.js'), 
                        'pathTemplates'      => 
$this->CORE->getMainCfg()->getPath('html', 'global', 'templates'), 


------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in 
Real-Time with Splunk. Collect, index and harness all the fast moving IT data 
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business 
insights. http://p.sf.net/sfu/splunk-dev2dev 
_______________________________________________
Nagvis-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nagvis-checkins

Reply via email to