mirror of
https://github.com/e107inc/e107.git
synced 2025-07-24 08:22:07 +02:00
Fixes #4682 - Dasherize News Tag SEF URL.
This commit is contained in:
@@ -102,7 +102,7 @@ class core_news_sef_noid_url extends eUrlConfig
|
||||
|
||||
case 'tag': // news/tag/xxxx
|
||||
$r[0] = 'tag';
|
||||
$r[1] = $params['tag'];
|
||||
$r[1] = eHelper::dasherize($params['tag']);
|
||||
if($page) $parm = array('page' => $page);
|
||||
break;
|
||||
|
||||
@@ -147,6 +147,7 @@ class core_news_sef_noid_url extends eUrlConfig
|
||||
|
||||
//XXX TODO Find a better place to put this check.
|
||||
$urlFormat = e107::getConfig()->get('url_sef_translate');
|
||||
|
||||
if($urlFormat == 'dashl' || $urlFormat == 'underscorel' || $urlFormat == 'plusl') // convert template to lowercase when using lowercase SEF URL format.
|
||||
{
|
||||
$r[0] = strtolower($r[0]);
|
||||
|
Reference in New Issue
Block a user