Module: nagvis Branch: master Commit: e7f3fd70733f55d2a065cb36ce0be021637f2c9e URL: http://nagvis.git.sourceforge.net/git/gitweb.cgi?p=nagvis/nagvis;a=commit;h=e7f3fd70733f55d2a065cb36ce0be021637f2c9e
Author: Lars Michelsen <[email protected]> Date: Wed Dec 22 00:29:38 2010 +0100 Fixed error message in case of too old livestatus version --- .../core/classes/GlobalBackendmklivestatus.php | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/share/server/core/classes/GlobalBackendmklivestatus.php b/share/server/core/classes/GlobalBackendmklivestatus.php index 69fc39c..ddf0f79 100644 --- a/share/server/core/classes/GlobalBackendmklivestatus.php +++ b/share/server/core/classes/GlobalBackendmklivestatus.php @@ -815,8 +815,8 @@ class GlobalBackendmklivestatus implements GlobalBackendInterface { if(is_array($l) && count($l) > 0) { // livestatus previous 1.1.9i3 answers without host_alias - these users should update. if(count($l[0]) == 13) - throw BackendInvalidResponse( - GlobalCore::getInstance()->getLang()->getText('Livestatus used in backend [BACKENDID] is too old. Please update.', + throw new BackendInvalidResponse( + GlobalCore::getInstance()->getLang()->getText('Livestatus version used in backend [BACKENDID] is too old. Please update.', Array('BACKENDID' => $this->backendId))); foreach($l as $e) { @@ -924,8 +924,8 @@ class GlobalBackendmklivestatus implements GlobalBackendInterface { if(is_array($l) && count($l) > 0) { // livestatus previous 1.1.9i3 answers without hostgroup_alias - these users should update. if(count($l[0]) == 10) - throw BackendInvalidResponse( - GlobalCore::getInstance()->getLang()->getText('Livestatus used in backend [BACKENDID] is too old. Please update.', + throw new BackendInvalidResponse( + GlobalCore::getInstance()->getLang()->getText('Livestatus version used in backend [BACKENDID] is too old. Please update.', Array('BACKENDID' => $this->backendId))); foreach($l as $e) { $arrReturn[$e[0]] = Array( @@ -1167,8 +1167,8 @@ class GlobalBackendmklivestatus implements GlobalBackendInterface { if(is_array($l) && count($l) > 0) { // livestatus previous 1.1.9i3 answers without servicegroup_alias - these users should update. if(count($l[0]) == 13) - throw BackendInvalidResponse( - GlobalCore::getInstance()->getLang()->getText('Livestatus used in backend [BACKENDID] is too old. Please update.', + throw new BackendInvalidResponse( + GlobalCore::getInstance()->getLang()->getText('Livestatus version used in backend [BACKENDID] is too old. Please update.', Array('BACKENDID' => $this->backendId))); foreach($l as $e) { $arrReturn[$e[0]] = Array( ------------------------------------------------------------------------------ Forrester recently released a report on the Return on Investment (ROI) of Google Apps. They found a 300% ROI, 38%-56% cost savings, and break-even within 7 months. Over 3 million businesses have gone Google with Google Apps: an online email calendar, and document program that's accessible from your browser. Read the Forrester report: http://p.sf.net/sfu/googleapps-sfnew _______________________________________________ Nagvis-checkins mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/nagvis-checkins
