Author:   Lars Michelsen <[email protected]>
Date:     Mon Aug 19 08:43:36 2013 +0200
Committer:   Lars Michelsen <[email protected]>
Commit-Date: Mon Aug 19 08:43:36 2013 +0200

Disabled debug mode

---

 .../nagvis-js/classes/NagVisHeaderMenu.php         |   14 ++++++++------
 share/server/core/defines/global.php               |    2 +-
 2 files changed, 9 insertions(+), 7 deletions(-)

diff --git a/share/frontend/nagvis-js/classes/NagVisHeaderMenu.php 
b/share/frontend/nagvis-js/classes/NagVisHeaderMenu.php
index 8355704..9415686 100644
--- a/share/frontend/nagvis-js/classes/NagVisHeaderMenu.php
+++ b/share/frontend/nagvis-js/classes/NagVisHeaderMenu.php
@@ -240,13 +240,15 @@ class NagVisHeaderMenu {
 
         // Replace some special macros
         if($this->OBJ !== null && $this->aMacros['mod'] == 'Map') {
-            $this->aMacros['currentMap'] = $this->OBJ->getName();
-            $this->aMacros['currentMapAlias'] = $this->OBJ->getValue(0, 
'alias');
-            $this->aMacros['usesSources'] = count($this->OBJ->getValue(0, 
'sources')) > 0;
+            $this->aMacros['currentMap']        = $this->OBJ->getName();
+            $this->aMacros['currentMapAlias']   = $this->OBJ->getValue(0, 
'alias');
+            $this->aMacros['usesSources']       = 
count($this->OBJ->getValue(0, 'sources')) > 0;
+            $this->aMacros['zoombar']           = $this->OBJ->getValue(0, 
'zoombar');
         } else {
-            $this->aMacros['currentMap'] = '';
-            $this->aMacros['currentMapAlias'] = '';
-            $this->aMacros['usesSources'] = false;
+            $this->aMacros['currentMap']        = '';
+            $this->aMacros['currentMapAlias']   = '';
+            $this->aMacros['usesSources']       = false;
+            $this->aMacros['zoombar']           = false;
         }
 
         // Add permitted rotations
diff --git a/share/server/core/defines/global.php 
b/share/server/core/defines/global.php
index 956035f..44d54e3 100644
--- a/share/server/core/defines/global.php
+++ b/share/server/core/defines/global.php
@@ -54,7 +54,7 @@ set_include_path(
 define('PROFILE', false);
 
 // enable/disable the debug mode
-define('DEBUG', true);
+define('DEBUG', false);
 
 /**
  * For desired debug output add these possible values:


------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead. 
Download for free and get started troubleshooting in minutes. 
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________
Nagvis-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nagvis-checkins

Reply via email to