OutputFormat: Just provide the pdf export if there's a hook available
Calling `isSupported()` is bad here since there may be IO involved.
This commit is contained in:
parent
29aaa363b4
commit
6a8f17faf2
|
@ -82,11 +82,7 @@ class OutputFormat implements Tabextension
|
|||
{
|
||||
$supportedTypes = array();
|
||||
|
||||
$pdfexport = false;
|
||||
|
||||
if (Hook::has('Pdfexport')) {
|
||||
$pdfexport = Hook::first('Pdfexport')->isSupported();
|
||||
}
|
||||
$pdfexport = Hook::has('Pdfexport');
|
||||
|
||||
if ($pdfexport || Platform::extensionLoaded('gd')) {
|
||||
$supportedTypes[self::TYPE_PDF] = array(
|
||||
|
|
Loading…
Reference in New Issue