1
0
mirror of https://github.com/e107inc/e107.git synced 2025-04-20 04:32:01 +02:00

Multi-language news category fix.

This commit is contained in:
Cameron 2014-01-20 16:12:24 -08:00
parent bf952897ed
commit 95eff5e653

View File

@ -758,8 +758,12 @@ class e_news_category_item extends e_front_model
public function sc_news_category_title($parm = '')
{
if('attribute' == $parm) return e107::getParser()->toAttribute($this->cat('name'));
return $this->cat('name');
if('attribute' == $parm)
{
return e107::getParser()->toAttribute($this->cat('name'));
}
return e107::getParser()->toHtml($this->cat('name'),true,'TITLE_PLAIN');
}
public function sc_news_category_url($parm = '')