We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0e31bdb commit b3d16a2Copy full SHA for b3d16a2
1 file changed
application/controllers/ReportController.php
@@ -8,6 +8,7 @@
8
use Exception;
9
use Icinga\Application\Hook;
10
use Icinga\Application\Hook\PdfexportHook;
11
+use Icinga\Application\Modules\Module;
12
use Icinga\Module\Pdfexport\ProvidedHook\Pdfexport;
13
use Icinga\Module\Reporting\Database;
14
use Icinga\Module\Reporting\Model;
@@ -246,6 +247,9 @@ public function downloadAction(): void
246
247
switch ($type) {
248
case 'pdf':
249
// TODO: Remove this once the dependency on the Pdfexport module is removed
250
+ if (Module::exists('pdfexport')) {
251
+ throw new Exception('The pdfexport module is not installed');
252
+ }
253
$exporter = method_exists(PdfexportHook::class, 'first')
254
? PdfexportHook::first()
255
: Pdfexport::first();
0 commit comments