Skip to content

Commit

Permalink
[MAINTENANCE] Use nested extension configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
fschoelzel committed Jun 7, 2024
1 parent 41c1915 commit a2eb281
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Classes/Common/MetsDocument.php
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ protected function getLogicalStructureInfo(\SimpleXMLElement $structure, bool $r
protected function getTimecode(array $logInfo)
{
// Load plugin configuration.
$extConf = GeneralUtility::makeInstance(ExtensionConfiguration::class)->get(self::$extKey);
$extConf = GeneralUtility::makeInstance(ExtensionConfiguration::class)->get(self::$extKey, 'files');
$fileGrps = GeneralUtility::trimExplode(',', $extConf['fileGrpVideo']);

foreach ($fileGrps as $fileGrp) {
Expand Down
6 changes: 3 additions & 3 deletions Classes/Controller/MediaPlayerController.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,11 @@ public function mainAction(): void
*/
protected function getVideoInfo(AbstractDocument $doc, int $pageNo): ?array
{
$videoFileGrps = GeneralUtility::trimExplode(',', $this->extConf['fileGrpVideo']);
$videoFileGrps = GeneralUtility::trimExplode(',', $this->extConf['files']['fileGrpVideo']);
$mainVideoFileGrp = $videoFileGrps[0] ?? '';

$thumbFileGroups = GeneralUtility::trimExplode(',', $this->extConf['fileGrpThumbs']);
$waveformFileGroups = GeneralUtility::trimExplode(',', $this->extConf['fileGrpWaveform']);
$thumbFileGroups = GeneralUtility::trimExplode(',', $this->extConf['files']['fileGrpThumbs']);
$waveformFileGroups = GeneralUtility::trimExplode(',', $this->extConf['files']['fileGrpWaveform']);

$initialMode = 'audio';

Expand Down

0 comments on commit a2eb281

Please sign in to comment.