diff --git a/e107_core/url/news/sef_noid_url.php b/e107_core/url/news/sef_noid_url.php index ded89cd1b..30953472a 100644 --- a/e107_core/url/news/sef_noid_url.php +++ b/e107_core/url/news/sef_noid_url.php @@ -10,6 +10,7 @@ if (!defined('e107_INIT')){ exit; } class core_news_sef_noid_url extends eUrlConfig { + public function config() { return array( @@ -134,6 +135,15 @@ class core_news_sef_noid_url extends eUrlConfig if(empty($r)) return false; + + //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]); + } + + return array($r, $parm); } diff --git a/e107_handlers/application.php b/e107_handlers/application.php index 621dd24f2..475925a3f 100644 --- a/e107_handlers/application.php +++ b/e107_handlers/application.php @@ -2476,6 +2476,7 @@ class eUrlRule $suffix = $this->urlSuffix === null ? $manager->urlSuffix : $this->urlSuffix; + // XXX TODO Find better place for this check which will affect all types of SEF URL configurations. (@see news/sef_noid_url.php for duplicate) $urlFormat = e107::getConfig()->get('url_sef_translate'); if($urlFormat == 'dashl' || $urlFormat == 'underscorel' || $urlFormat == 'plusl') // convert template to lowercase when using lowercase SEF URL format. diff --git a/news.php b/news.php index 8bbff73b3..2db119ef7 100644 --- a/news.php +++ b/news.php @@ -318,7 +318,7 @@ if ($action == 'cat' || $action == 'all' || vartrue($_GET['tag'])) $NEWSLISTTITLE = str_replace("{NEWSCATEGORY}",$tp->toHTML($category_name,FALSE,'TITLE'),$NEWSLISTTITLE); } - $text .= "
"; + $text .= " "; ob_start(); $ns->tablerender($NEWSLISTTITLE, $text, 'news');