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

Author: LaMi <[email protected]>
Date:   Tue Apr  6 22:54:29 2010 +0200

Added error message when no url given to url mod

---

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

diff --git a/share/frontend/nagvis-js/classes/FrontendModUrl.php 
b/share/frontend/nagvis-js/classes/FrontendModUrl.php
index f0e892f..fc5c673 100644
--- a/share/frontend/nagvis-js/classes/FrontendModUrl.php
+++ b/share/frontend/nagvis-js/classes/FrontendModUrl.php
@@ -64,8 +64,7 @@ class FrontendModUrl extends FrontendModule {
        private function showViewDialog() {
                // Only show when map name given
                if(!isset($this->url) || $this->url == '') {
-                       //FIXME: Error handling
-                       echo "No url given";
+                       new GlobalMessage('ERROR', 
$this->CORE->getLang()->getText('No url given.'));
                        exit(1);
                }
                


------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Nagvis-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nagvis-checkins

Reply via email to