1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-31 20:00:37 +02:00

news: Fix category link in both breadcrumb and menu

Fixes: #4982
This commit is contained in:
Nick Liu
2023-02-19 23:49:40 +01:00
parent 92bb0519d3
commit a500035172
2 changed files with 2 additions and 2 deletions

View File

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

View File

@@ -999,7 +999,7 @@ class e_news_category_item extends e_front_model
public function sc_news_category_url($parm = '') public function sc_news_category_url($parm = '')
{ {
$url = e107::getUrl()->create('news/list/category', array('id' => $this->getId(), 'name' => $this->cat('sef'))); $url = e107::getUrl()->create('news/list/category', array($this->getFieldIdName() => $this->getId(), 'name' => $this->cat('sef')));
switch($parm) switch($parm)
{ {
case 'link': case 'link':