| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 9 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 46 | public function display(array $settings, $edit_mode = false) |
||
| 47 | 1 | { |
|
| 48 | 1 | $content = ''; |
|
| 49 | 1 | $content .= $this->translator->lang('TOTAL_POSTS_COUNT', (int) $this->config['num_posts']) . '<br />'; |
|
| 50 | 1 | $content .= $this->translator->lang('TOTAL_TOPICS', (int) $this->config['num_topics']) . '<br />'; |
|
| 51 | 1 | $content .= $this->translator->lang('TOTAL_USERS', (int) $this->config['num_users']) . '<br />'; |
|
| 52 | $content .= $this->translator->lang('NEWEST_USER', get_username_string('full', (int) $this->config['newest_user_id'], $this->config['newest_username'], $this->config['newest_user_colour'])); |
||
| 53 | 1 | ||
| 54 | $this->template->assign_var('NEWEST_USER', false); |
||
| 55 | |||
| 56 | 1 | return array( |
|
| 57 | 1 | 'title' => 'STATISTICS', |
|
| 58 | 1 | 'content' => $content, |
|
| 59 | ); |
||
| 62 |