mirror of
https://github.com/Icinga/icingadb-web.git
synced 2026-05-28 04:36:06 -04:00
Only use pdf export module for pdf format
This commit is contained in:
parent
5b026f8f26
commit
f31291d28e
1 changed files with 4 additions and 4 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue