| Conditions | 2 |
| Paths | 3 |
| Total Lines | 18 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 6 |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 23 | public function main() |
||
| 24 | { |
||
| 25 | global $phpbb_container, $request; |
||
| 26 | |||
| 27 | $action = $request->variable('do', 'index'); |
||
| 28 | |||
| 29 | try |
||
| 30 | { |
||
| 31 | $controller = $phpbb_container->get('blitze.content.ucp.controller'); |
||
| 32 | $controller->handle($action, $this->u_action); |
||
| 33 | } |
||
| 34 | catch (\Exception $e) |
||
| 35 | { |
||
| 36 | trigger_error($e->getMessage()); |
||
| 37 | } |
||
| 38 | |||
| 39 | $this->tpl_name = 'cp_content'; |
||
| 40 | $this->page_title = 'CONTENT_TYPES'; |
||
| 41 | } |
||
| 43 |