[icinga-checkins] icinga.org: icinga-web/mfriedrich/fixes: * Fixed namespace handling according to php version

git at icinga.org git at icinga.org
Mon Jan 10 09:04:52 CET 2011


Module: icinga-web
Branch: mfriedrich/fixes
Commit: ca0419075c29cac09a9a53f88a640c5d18c7c79b
URL:    https://git.icinga.org/?p=icinga-web.git;a=commit;h=ca0419075c29cac09a9a53f88a640c5d18c7c79b

Author: jmosshammer <jmosshammer at mojadev-VGN-NW11S-S.(none)>
Date:   Tue Nov  9 11:33:07 2010 +0100

* Fixed namespace handling according to php version

---

 etc/modules/bin/xmlMergerTask.php |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/etc/modules/bin/xmlMergerTask.php b/etc/modules/bin/xmlMergerTask.php
index f023835..93d6f47 100755
--- a/etc/modules/bin/xmlMergerTask.php
+++ b/etc/modules/bin/xmlMergerTask.php
@@ -8,8 +8,8 @@
 require_once("actionQueueTask.php");
 require_once("xmlHelperTask.php");
 
-$vers = phpversion();
-if($vers[1] < 3) 
+
+if(PHP_MAJOR_VERSION < 5 || PHP_MINOR_VERSION < 3)
 	define("USE_XML_NSPREFIX_WORKAROUND",true);
 else 
 	define("USE_XML_NSPREFIX_WORKAROUND",false);





More information about the icinga-checkins mailing list