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

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

#131 Allowing spaces in rotation step list now

---

 share/server/core/classes/GlobalMainCfg.php |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/share/server/core/classes/GlobalMainCfg.php 
b/share/server/core/classes/GlobalMainCfg.php
index 9c05dcd..9741e3b 100644
--- a/share/server/core/classes/GlobalMainCfg.php
+++ b/share/server/core/classes/GlobalMainCfg.php
@@ -616,7 +616,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,
@@ -930,8 +930,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