Skip to content

Commit

Permalink
return full menu item objects
Browse files Browse the repository at this point in the history
  • Loading branch information
Denitz committed Aug 29, 2023
1 parent ff89402 commit 59e8a01
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions libraries/src/Language/Multilanguage.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public static function isEnabled(CMSApplication $app = null, DatabaseInterface $
/**
* Method to return a list of language home page menu items.
*
* @return array of menu objects.
* @return array of menu item objects.
*
* @since 3.5
*/
Expand All @@ -108,10 +108,7 @@ public static function getSiteHomePages()
$items = $menu->getItems(['home', 'language', 'access'], [1, null, null]);

foreach ($items as $item) {
$multilangSiteHomePages[$item->language] = (object) [
'language' => $item->language,
'id' => $item->id,
];
$multilangSiteHomePages[$item->language] = $item;
}
}

Expand Down

0 comments on commit 59e8a01

Please sign in to comment.