From 504853961bdf2a90694aa9182f680a2440e44c22 Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Wed, 29 Oct 2014 16:25:25 +0100 Subject: [PATCH] Add temporary requirement for the DOM php module Should be removed once dompdf isn't shipped with Icinga Web 2 anymore refs #7163 refs #6172 --- library/Icinga/Application/WebSetup.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/library/Icinga/Application/WebSetup.php b/library/Icinga/Application/WebSetup.php index d6d4118d2..309cd93ea 100644 --- a/library/Icinga/Application/WebSetup.php +++ b/library/Icinga/Application/WebSetup.php @@ -397,6 +397,16 @@ class WebSetup extends Wizard implements SetupWizard ) ); + // TODO(6172): Remove this requirement once we do not ship dompdf with Icinga Web 2 anymore + $requirements->addOptional( + t('PHP Module: DOM'), + t('To be able to export views and reports to PDF, the DOM module for PHP is required.'), + Platform::extensionLoaded('dom'), + Platform::extensionLoaded('dom') ? t('The PHP module DOM is available') : ( + t('The PHP module DOM is missing') + ) + ); + $requirements->addOptional( t('PHP Module: GD'), t(