From 6a4bc362da062f38eefa0924441965616d618acd Mon Sep 17 00:00:00 2001 From: Marcin Haba Date: Thu, 31 Dec 2015 17:22:09 +0100 Subject: [PATCH] baculum: Add php-xml to requirements --- gui/baculum/INSTALL | 4 +++- gui/baculum/protected/Pages/Requirements.php | 4 ++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gui/baculum/INSTALL b/gui/baculum/INSTALL index 0e804dbd90..63adb22a5f 100644 --- a/gui/baculum/INSTALL +++ b/gui/baculum/INSTALL @@ -50,6 +50,7 @@ PDO MySQL or PDO SQLite. * cURL PHP module. * MB String PHP module. * JSON PHP module. + * XML PHP module. - Bconsole - configured Bacula text based console - Access to Bacula catalog database - computer with Baculum installation should be able to connect to Bacula catalog database. There is not need to install Baculum @@ -73,7 +74,8 @@ php-pdo \ php-pgsql \ php-mysqlnd \ php-mbstring \ -php-bcmath +php-bcmath \ +php-xml In Fedora 20 PHP module for cURL support and for JSON support are compiled in PHP. diff --git a/gui/baculum/protected/Pages/Requirements.php b/gui/baculum/protected/Pages/Requirements.php index 4c4d1318af..6816d20c50 100644 --- a/gui/baculum/protected/Pages/Requirements.php +++ b/gui/baculum/protected/Pages/Requirements.php @@ -63,6 +63,10 @@ class Requirements { $requirements[] = 'Please install Module for JSON functions in PHP scripts.'; } + if(!class_exists('DOMDocument')) { + $requirements[] = 'Please install PHP DOM XML to support XML documents (usually included in php-xml binary package).'; + } + if(count($requirements) > 0) { echo '

Baculum - Missing dependencies