* Skip repetitive navigation.

This commit is contained in:
tianshujie
2023-02-28 09:36:22 +08:00
parent 2a003865f4
commit 9ba8629107
2 changed files with 7 additions and 2 deletions
+4 -1
View File
@@ -412,7 +412,10 @@ class devModel extends model
$menus = $this->getLinkTitle($lang);
foreach($menus as $linkKey => $menu)
{
if($type == 'first' and in_array($linkKey, $this->config->dev->disableMainMenu)) continue;
foreach($this->config->dev->skipMenus as $menuType => $skipMenus)
{
if($type == $menuType and in_array($linkKey, $skipMenus)) continue 2;
}
$originalLangs[$langKey . $linkKey] = $menu;
}