| Conditions | 7 |
| Paths | 8 |
| Total Lines | 16 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 23 | public function show() |
||
| 24 | { |
||
| 25 | parent::show(); |
||
| 26 | |||
| 27 | $date = $this->obj->thread_date ?? ($this->obj->time ?? null); |
||
| 28 | $extra = $date ? api_convert_and_format_date($date) : ''; |
||
| 29 | |||
| 30 | if (!empty($this->obj->thread_poster_id)) { |
||
| 31 | $ui = api_get_user_info($this->obj->thread_poster_id); |
||
| 32 | $name = $ui['complete_name'] ?? $this->topic_poster_name; |
||
| 33 | $extra = ($name ? $name.', ' : '').$extra; |
||
| 34 | } elseif (!empty($this->topic_poster_name)) { |
||
| 35 | $extra = $this->topic_poster_name.', '.$extra; |
||
| 36 | } |
||
| 37 | |||
| 38 | echo $this->title.($this->title_qualify ? ' ['.$this->title_qualify.']' : '').($extra ? ' ('.$extra.')' : ''); |
||
| 39 | } |
||
| 41 |