Skip to content

Commit

Permalink
[BUGFIX] Refactor type casting for pid in SearchInDocument (kitodo#1309)
Browse files Browse the repository at this point in the history
  • Loading branch information
fschoelzel authored and sebastian-meyer committed Aug 23, 2024
1 parent 6127e0e commit a7cb263
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Classes/Middleware/SearchInDocument.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public function process(ServerRequestInterface $request, RequestHandlerInterface
$highlighting = $data['ocrHighlighting'];

$siteFinder = GeneralUtility::makeInstance(SiteFinder::class);
$site = $siteFinder->getSiteByPageId($parameters['pid']);
$site = $siteFinder->getSiteByPageId((int) $parameters['pid']);

// @phpstan-ignore-next-line
foreach ($result as $record) {
Expand Down
2 changes: 1 addition & 1 deletion Resources/Private/Language/locallang_labels.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@
<trans-unit id="tt_content.dlf_toolbox">
<source>DLF: Toolbox</source>
</trans-unit>
<trans-unit id="config.metadataFormats">
<trans-unit id="config.general.metadataFormats">
<source>Default metadata namespaces</source>
</trans-unit>
<trans-unit id="config.general.enableInternalProxy">
Expand Down

0 comments on commit a7cb263

Please sign in to comment.