[icinga-checkins] icinga.org: icinga-web/master: Added xls extension check before initializing agavi

git at icinga.org git at icinga.org
Fri Apr 27 11:54:59 CEST 2012


Module: icinga-web
Branch: master
Commit: 549c05209a3641050d81e8ddbb9b0d9bd794a85c
URL:    https://git.icinga.org/?p=icinga-web.git;a=commit;h=549c05209a3641050d81e8ddbb9b0d9bd794a85c

Author: Jannis Mosshammer <jannis.mosshammer at netways.de>
Date:   Fri Apr 27 11:52:55 2012 +0200

Added xls extension check before initializing agavi
fixes #2564

---

 pub/index.php |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/pub/index.php b/pub/index.php
index a27a185..73218f3 100755
--- a/pub/index.php
+++ b/pub/index.php
@@ -9,6 +9,11 @@ header("Access-Control-Max-Age: 720000");
 // just make sure a default timezone exists
 if(!ini_get("date.timezone"))
 	ini_set("date.timezone","GMT");
+
+// check for xsl BEFORE loading agavi, otherwise an obsucure error will be thrown
+if(!extension_loaded('xsl')) {
+    die("Please install the php xsl extension, as this is required for icinga-web");    
+}
 // +---------------------------------------------------------------------------+
 // | An absolute filesystem path to the agavi/agavi.php script.                |
 // +---------------------------------------------------------------------------+





More information about the icinga-checkins mailing list