From 3262206d3cda17048d2010de8dec165c8f5bf052 Mon Sep 17 00:00:00 2001 From: Nik Okuntseff Date: Fri, 28 Dec 2018 16:22:15 +0000 Subject: [PATCH] Added an environment check for enabled libxml to address issue #67. --- WEB-INF/templates/footer.tpl | 2 +- dbinstall.php | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/WEB-INF/templates/footer.tpl b/WEB-INF/templates/footer.tpl index 58515288..fd999f83 100644 --- a/WEB-INF/templates/footer.tpl +++ b/WEB-INF/templates/footer.tpl @@ -12,7 +12,7 @@
-
 Anuko Time Tracker 1.18.36.4692 | Copyright © Anuko | +  Anuko Time Tracker 1.18.36.4693 | Copyright © Anuko | {$i18n.footer.credits} | {$i18n.footer.license} | {$i18n.footer.improve} diff --git a/dbinstall.php b/dbinstall.php index 76a257ca..a3cdd9cc 100644 --- a/dbinstall.php +++ b/dbinstall.php @@ -131,6 +131,11 @@ if ($request->isGet()) { } } + // Check is libxml is enabled (which is a PHP default). + if (!function_exists('libxml_clear_errors')) { + echo('Error: libxml is not enabled. It is required for import group operation (to parse XML).
'); + } + // Check database access. require_once('MDB2.php'); $conn = MDB2::connect(DSN); -- 2.20.1