| 201 | | |
| 202 | | if (file_exists($ext_info['path'].'/lang/'.$forum_user['language'].'/portal.php')) |
| 203 | | require_once $ext_info['path'].'/lang/'.$forum_user['language'].'/portal.php'; |
| 204 | | else |
| 205 | | require_once $ext_info['path'].'/lang/English/portal.php'; |
| 206 | | |
| 207 | | $desc = $lang_portal['News'].': <a href="'.forum_link($forum_url['topic'], array($cur_topic['id'], sef_friendly($cur_topic['subject']))); |
| 208 | | |
| 209 | | $desc .= '">'.$cur_topic['subject'].'</a><br />'."\n".parse_message(strlen($cur_topic['message']) > 400 ? substr($cur_topic['message'], 0, 400).'...' : $cur_topic['message'], 1); |
| 210 | | |
| 211 | | $feed['items'][count($feed['items']) - 1]['description'] = $desc; |
| 212 | | } |
| | 201 | |
| | 202 | $link = forum_link($forum_url['topic'], array($cur_topic['id'], sef_friendly($cur_topic['subject']))); |
| | 203 | |
| | 204 | $description = parse_message(strlen($cur_topic['message']) > 1000 ? substr($cur_topic['message'], 0, 1000).'...' : $cur_topic['message'], 1); |
| | 205 | |
| | 206 | $item_id = count($feed['items']) - 1; |
| | 207 | $feed['items'][$item_id]['description'] = $description; |
| | 208 | } $feed['items'][$item_id]['link'] = $link; |
| | 209 | |