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

Issue #407 - Incorrect news category link.

This commit is contained in:
Cameron
2013-07-08 12:03:37 -07:00
parent b36c39277a
commit cb69048fd0

View File

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