Skip to content

Commit

Permalink
Use arrays for URL paths
Browse files Browse the repository at this point in the history
  • Loading branch information
asmecher committed Jul 5, 2024
1 parent 074840f commit 776fcec
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
2 changes: 1 addition & 1 deletion classes/section/maps/Schema.php
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down
11 changes: 4 additions & 7 deletions classes/services/NavigationMenuService.php
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -183,8 +181,7 @@ public function getDisplayStatusCallback($hookName, $args)
PKPApplication::ROUTE_PAGE,
null,
'catalog',
'newReleases',
null
'newReleases'
));
break;
case self::NMI_TYPE_SERIES:
Expand All @@ -195,7 +192,7 @@ public function getDisplayStatusCallback($hookName, $args)
null,
'catalog',
'series',
$relatedObject->getPath()
[$relatedObject->getPath()]
));
} else {
$navigationMenuItem->setIsDisplayed(false);
Expand All @@ -209,7 +206,7 @@ public function getDisplayStatusCallback($hookName, $args)
null,
'catalog',
'category',
$relatedObject->getPath()
[$relatedObject->getPath()]
));
} else {
$navigationMenuItem->setIsDisplayed(false);
Expand Down

0 comments on commit 776fcec

Please sign in to comment.