Conditions | 1 |
Paths | 1 |
Total Lines | 13 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
24 | public function main() |
||
25 | { |
||
26 | global $phpbb_container; |
||
|
|||
27 | |||
28 | $user = $phpbb_container->get('user'); |
||
29 | $user->add_lang('acp/forums'); |
||
30 | $user->add_lang_ext('phpbb/topicprefixes', 'acp_topic_prefixes'); |
||
31 | $this->tpl_name = 'acp_topic_prefixes'; |
||
32 | $this->page_title = $user->lang('TOPIC_PREFIXES'); |
||
33 | |||
34 | $admin_controller = $phpbb_container->get('phpbb.topicprefixes.admin_controller'); |
||
35 | $admin_controller->set_u_action($this->u_action)->main(); |
||
36 | } |
||
37 | } |
||
38 |
Instead of relying on
global
state, we recommend one of these alternatives:1. Pass all data via parameters
2. Create a class that maintains your state