diff --git a/classes/section/maps/Schema.php b/classes/section/maps/Schema.php index c6d4d5034d7..216cf71dd2d 100644 --- a/classes/section/maps/Schema.php +++ b/classes/section/maps/Schema.php @@ -31,7 +31,7 @@ protected function mapByProperties(array $props, Section $series): array $this->context->getPath(), 'catalog', 'series', - $series->getPath() + [$series->getPath()] ); } $output = $this->schemaService->addMissingMultilingualValues($this->schema, $output, $this->context->getSupportedFormLocales()); diff --git a/classes/services/NavigationMenuService.php b/classes/services/NavigationMenuService.php index d4cb7e81de8..2c0d7823e41 100644 --- a/classes/services/NavigationMenuService.php +++ b/classes/services/NavigationMenuService.php @@ -172,9 +172,7 @@ public function getDisplayStatusCallback($hookName, $args) $request, PKPApplication::ROUTE_PAGE, null, - 'catalog', - null, - null + 'catalog' )); break; case self::NMI_TYPE_NEW_RELEASE: @@ -183,8 +181,7 @@ public function getDisplayStatusCallback($hookName, $args) PKPApplication::ROUTE_PAGE, null, 'catalog', - 'newReleases', - null + 'newReleases' )); break; case self::NMI_TYPE_SERIES: @@ -195,7 +192,7 @@ public function getDisplayStatusCallback($hookName, $args) null, 'catalog', 'series', - $relatedObject->getPath() + [$relatedObject->getPath()] )); } else { $navigationMenuItem->setIsDisplayed(false); @@ -209,7 +206,7 @@ public function getDisplayStatusCallback($hookName, $args) null, 'catalog', 'category', - $relatedObject->getPath() + [$relatedObject->getPath()] )); } else { $navigationMenuItem->setIsDisplayed(false);