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

Author: LaMi <[email protected]>
Date:   Sat Nov  7 13:49:58 2009 +0100

 #157 Removed deprecated dl() calls

---

 .../server/core/classes/GlobalBackendmerlinmy.php  |   11 +++--------
 share/server/core/classes/GlobalBackendndomy.php   |    9 ++-------
 2 files changed, 5 insertions(+), 15 deletions(-)

diff --git a/share/server/core/classes/GlobalBackendmerlinmy.php 
b/share/server/core/classes/GlobalBackendmerlinmy.php
index 791692d..1ea7342 100644
--- a/share/server/core/classes/GlobalBackendmerlinmy.php
+++ b/share/server/core/classes/GlobalBackendmerlinmy.php
@@ -4,7 +4,7 @@
  * GlobalBackendmerlinmy.php - backend class for handling object and state 
  *                             information stored in the Merlin database.
  *
- * Copyright (c) 2004-2008 NagVis Project (Contact: [email protected])
+ * Copyright (c) 2004-2009 NagVis Project (Contact: [email protected])
  *
  * License:
  *
@@ -160,13 +160,8 @@ class GlobalBackendmerlinmy implements 
GlobalBackendInterface {
        private function checkMysqlSupport() {
                // Check availability of PHP MySQL
                if (!extension_loaded('mysql')) {
-                       dl('mysql.so');
-                       if (!extension_loaded('mysql')) {
-                               new GlobalMessage('ERROR', 
$this->CORE->getLang()->getText('mysqlNotSupported', Array('BACKENDID' => 
$this->backendId)));
-                               return FALSE;
-                       } else {
-                               return TRUE;
-                       }
+                       new GlobalFrontendMessage('ERROR', 
$this->CORE->LANG->getText('mysqlNotSupported', Array('BACKENDID' => 
$this->backendId)));
+                       return FALSE;
                } else {
                        return TRUE;    
                }
diff --git a/share/server/core/classes/GlobalBackendndomy.php 
b/share/server/core/classes/GlobalBackendndomy.php
index f6f2ae7..a3b2abd 100644
--- a/share/server/core/classes/GlobalBackendndomy.php
+++ b/share/server/core/classes/GlobalBackendndomy.php
@@ -213,13 +213,8 @@ class GlobalBackendndomy implements GlobalBackendInterface 
{
        private function checkMysqlSupport() {
                // Check availability of PHP MySQL
                if (!extension_loaded('mysql')) {
-                       dl('mysql.so');
-                       if (!extension_loaded('mysql')) {
-                               new GlobalMessage('ERROR', 
$this->CORE->getLang()->getText('mysqlNotSupported', Array('BACKENDID' => 
$this->backendId)));
-                               return FALSE;
-                       } else {
-                               return TRUE;
-                       }
+                       new GlobalFrontendMessage('ERROR', 
$this->CORE->LANG->getText('mysqlNotSupported', Array('BACKENDID' => 
$this->backendId)));
+                       return FALSE;
                } else {
                        return TRUE;    
                }


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Nagvis-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nagvis-checkins

Reply via email to