Module: nagvis
Branch: nagvis-1.4
Commit: a3250dc3d665d46816b4b8b0ce334c7d3cead62b
URL:    
http://nagvis.git.sourceforge.net/git/gitweb.cgi?p=nagvis/nagvis;a=commit;h=a3250dc3d665d46816b4b8b0ce334c7d3cead62b

Author: Lars Michelsen <[email protected]>
Date:   Thu Oct 15 17:16:39 2009 +0200

#131 Allowing spaces in rotation step list now

---

 nagvis/nagvis/includes/classes/GlobalMainCfg.php |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/nagvis/nagvis/includes/classes/GlobalMainCfg.php 
b/nagvis/nagvis/includes/classes/GlobalMainCfg.php
index 00b863c..09002cf 100644
--- a/nagvis/nagvis/includes/classes/GlobalMainCfg.php
+++ b/nagvis/nagvis/includes/classes/GlobalMainCfg.php
@@ -352,7 +352,7 @@ class GlobalMainCfg {
                                'maps' => Array('must' => 1,
                                        'editable' => 1,
                                        'default' => 'demo,demo2',
-                                       'match' => MATCH_STRING_NO_SPACE)),
+                                       'match' => MATCH_STRING)),
                        'automap' => Array(
                                'defaultparams' => Array('must' => 0,
                                        'editable' => 1,
@@ -629,8 +629,13 @@ class GlobalMainCfg {
                                                                }
                                                                
                                                                
if(isset($arrRet[4]) && $arrRet[4] != '') {
+                                                                       // 
Remove leading/trailing spaces
                                                                        $map = 
$arrRet[4];
                                                                }
+
+                                                               // Remove 
surrounding spaces
+                                                               $label = 
trim($label);
+                                                               $map = 
trim($map);
                                                                
                                                                // Save the 
extracted information to an array
                                                                $val[$id] = 
Array('label' => $label, 'map' => $map, 'url' => $arrRet[3], 'target' => '');


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Nagvis-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nagvis-checkins

Reply via email to