get('phpbbstudio.aps.functions'); /** @var \phpbb\language\language $language */ $language = $phpbb_container->get('language'); /** @var \phpbbstudio\aps\controller\mcp_controller $mcp_controller */ $mcp_controller = $phpbb_container->get('phpbbstudio.aps.controller.mcp'); // Set page title and template $this->tpl_name = 'mcp/mcp_aps_' . $mode; $this->page_title = $language->lang('MCP_APS_POINTS_' . utf8_strtoupper($mode), $functions->get_name()); // Make the custom form action available in the controller and handle the mode $mcp_controller->set_page_url($this->u_action)->{$mode}(); } }