Skip to content

Commit

Permalink
[Task]: Update Gotenberg options documentation link (#90)
Browse files Browse the repository at this point in the history
* Update settings.js

* Apply php-cs-fixer changes

---------

Co-authored-by: kingjia90 <[email protected]>
  • Loading branch information
kingjia90 and kingjia90 authored Nov 13, 2024
1 parent e433008 commit beeffd6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion public/js/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ pimcore.bundle.web2print.settings = Class.create({
autoEl:{
tag: 'a',
target: '_blank',
href: "https://gotenberg.dev/docs/modules/chromium#routes",
href: "https://gotenberg.dev/docs/routes#page-properties-chromium",
}
},{
xtype: "displayfield",
Expand Down
10 changes: 5 additions & 5 deletions src/Processor.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,16 +40,16 @@ public static function getInstance(): PdfReactor|Gotenberg|Chromium|Processor
{
$config = Config::getWeb2PrintConfig();

if($config['generalTool'] == 'pdfreactor') {
if ($config['generalTool'] == 'pdfreactor') {
return new PdfReactor();
} elseif($config['generalTool'] == 'chromium') {
} elseif ($config['generalTool'] == 'chromium') {
return new Chromium();
} elseif($config['generalTool'] == 'gotenberg') {
} elseif ($config['generalTool'] == 'gotenberg') {
return new Gotenberg();
} else {
if(class_exists($config['generalTool'])) {
if (class_exists($config['generalTool'])) {
$generalToolClass = new $config['generalTool']();
if($generalToolClass instanceof Processor) {
if ($generalToolClass instanceof Processor) {
return $generalToolClass;
}
}
Expand Down

0 comments on commit beeffd6

Please sign in to comment.