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
This commit is contained in:
Johannes Meyer 2014-10-29 16:25:25 +01:00
parent c8e323e8a7
commit 504853961b
1 changed files with 10 additions and 0 deletions

View File

@ -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(