Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function render_entry($topic) {
- global $DB, $std, $ibforums;
- $topic['last_text'] = $ibforums->lang['last_post_by'];
- $topic['last_poster'] = ($topic['last_poster_id'] != 0)
- ? "<a href='{$this->base_url}showuser={$topic['last_poster_id']}'>{$topic['last_poster_name']}</a>"
- : "-".$topic['last_poster_name']."-";
- $topic['starter'] = ($topic['starter_id'] != 0)
- ? "<a href='{$this->base_url}showuser={$topic['starter_id']}'>{$topic['starter_name']}</a>"
- : "-".$topic['starter_name']."-";
- if ($topic['poll_state'])
- {
- $topic['prefix'] = $ibforums->vars['pre_polls'].' ';
- }
- if ( ($ibforums->member['id']) and ($topic['author_id']) )
- {
- $show_dots = 1;
- }
- $topic['folder_img'] = $std->folder_icon($topic, $show_dots, $this->read_array[$topic['tid']]);
- // My modified code here
- if ( $topic['topic_icon'] = $topic['icon_id'] ) {
- if (is_numeric($topic['icon_id'])) {
- "<img src='".$ibforums->vars['img_url']."/icon{$topic['icon_id']}.gif' alt='{$topic['icon_id']}' />";
- } else {
- "<span class='text-icon {$topic['icon_id']}'>{$topic['icon_id']}</span>";
- }
- } else {
- "";
- }
- /* THE ORIGINAL HERE
- $topic['topic_icon'] = $topic['icon_id'] ? '<img src="'.$ibforums->vars['img_url'] . '/icon' . $topic['icon_id'] . '.gif" border="0" alt="' . $topic['icon_id'] . '" />'
- : ' ';
- END ORIGINAL */
- // some other code ...
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement