1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-21 05:41:58 +02:00

Merge pull request #4984 from Deltik/hotfix/4982

news: Fix category link in both breadcrumb and menu
This commit is contained in:
Cameron
2023-04-03 17:11:06 -07:00
committed by GitHub
4 changed files with 128 additions and 4 deletions

View File

@@ -129,13 +129,13 @@ class core_news_url extends eUrlConfig
break;
case 'category':
if(!vartrue($params['id']))
if(!vartrue($params['category_id']))
{
$url .= 'default.0.'.$page;
}
else
{
$url .= 'list.'.$params['id'].'.'.$page; // 'category_id' would break news_categories_menu.
$url .= 'list.'.$params['category_id'].'.'.$page;
}
break;