I just noticed that News articles displayed on a detail page always seem to have the same category displayed (i.e. "General").
I tracked the problem down to a typo in modules/News/lib/class.news_ops.php (assignment operator instead of equality operator):
Code: Select all
public static function get_category_name_from_id($id)
{
self::get_category_list();
for( $i = 0; $i < count(self::$_cached_categories); $i++ )
{
if( $id = self::$_cached_categories[$i]['news_category_id'] )
{
return self::$_cached_categories[$i]['news_category_name'];
}
}
}
Code: Select all
if( $id == self::$_cached_categories[$i]['news_category_id'] )