Skip to content

Commit

Permalink
Adjust DocumentController
Browse files Browse the repository at this point in the history
  • Loading branch information
beatrycze-volk committed Feb 16, 2023
1 parent 83be169 commit a0d8004
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions Classes/Controller/DocumentController.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,7 @@ public function mainAction()
{
// Load current document.
$this->loadDocument($this->requestData);
if (
$this->document === null
|| $this->document->getDoc() === null
|| $this->document->getDoc()->numPages < 1
) {
if ($this->isDocMissingOrEmpty()) {
// Quit without doing anything if required variables are not set.
return;
} else {
Expand All @@ -61,7 +57,7 @@ public function mainAction()
$this->requestData['double'] = MathUtility::forceIntegerInRange($this->requestData['double'], 0, 1, 0);
}

$doc = $this->document->getDoc();
$metadataUrl = null;

if (!empty($this->settings['targetPidMetadata'])) {
$metadataUrl = $this->uriBuilder
Expand Down

0 comments on commit a0d8004

Please sign in to comment.