Skip to content

Commit

Permalink
Merge branch 'master' into fix-wrap
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastian-meyer committed May 31, 2024
2 parents 952f9de + ad3d8de commit 7aa8fc6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Classes/Common/Solr/Solr.php
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ public static function getInstance($core = null): Solr
if (!empty($core)) {
// Check if there is an instance in the registry already.
if (
is_object(self::$registry[$core])
array_key_exists($core, self::$registry)
&& self::$registry[$core] instanceof self
) {
// Return singleton instance if available.
Expand Down
12 changes: 6 additions & 6 deletions Classes/Controller/PageViewController.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,9 @@ protected function getFulltext(int $page): array
$fileGrpsFulltext = GeneralUtility::trimExplode(',', $this->extConf['files']['fileGrpFulltext']);
while ($fileGrpFulltext = array_shift($fileGrpsFulltext)) {
$physicalStructureInfo = $this->document->getCurrentDocument()->physicalStructureInfo[$this->document->getCurrentDocument()->physicalStructure[$page]];
$fileId = $physicalStructureInfo['files'][$fileGrpFulltext];
if (!empty($fileId)) {
$file = $this->document->getCurrentDocument()->getFileInfo($fileId);
$files = $physicalStructureInfo['files'];
if (!empty($files[$fileGrpFulltext])) {
$file = $this->document->getCurrentDocument()->getFileInfo($files[$fileGrpFulltext]);
$fulltext['url'] = $file['location'];
if ($this->settings['useInternalProxy']) {
$this->configureProxyUrl($fulltext['url']);
Expand Down Expand Up @@ -227,9 +227,9 @@ protected function getImage(int $page): array
while ($fileGrpImages = array_pop($fileGrpsImages)) {
// Get image link.
$physicalStructureInfo = $this->document->getCurrentDocument()->physicalStructureInfo[$this->document->getCurrentDocument()->physicalStructure[$page]];
$fileId = $physicalStructureInfo['files'][$fileGrpImages];
if (!empty($fileId)) {
$file = $this->document->getCurrentDocument()->getFileInfo($fileId);
$files = $physicalStructureInfo['files'];
if (!empty($files[$fileGrpImages])) {
$file = $this->document->getCurrentDocument()->getFileInfo($files[$fileGrpImages]);
$image['url'] = $file['location'];
$image['mimetype'] = $file['mimeType'];

Expand Down

0 comments on commit 7aa8fc6

Please sign in to comment.