diff --git a/library/Icingadb/Web/Controller.php b/library/Icingadb/Web/Controller.php index 388ead03..efb5ae16 100644 --- a/library/Icingadb/Web/Controller.php +++ b/library/Icingadb/Web/Controller.php @@ -465,15 +465,15 @@ class Controller extends CompatController */ protected function sendAsPdf() { + if (! Icinga::app()->getModuleManager()->has('pdfexport')) { + throw new ConfigurationError('The pdfexport module is required for exports to PDF'); + } + if (version_compare(Version::VERSION, '2.10.0', '>=')) { parent::sendAsPdf(); return; } - if (! Icinga::app()->getModuleManager()->has('pdfexport')) { - throw new ConfigurationError('The pdfexport module is required for exports to PDF'); - } - putenv('ICINGAWEB_EXPORT_FORMAT=pdf'); Environment::raiseMemoryLimit('512M'); Environment::raiseExecutionTime(300);