/** * Render the mChat custom page * * @return \Symfony\Component\HttpFoundation\Response */ public function page_custom() { if (!$this->auth->acl_get('u_mchat_view') || !$this->config['mchat_custom_page']) { throw new \phpbb\exception\http_exception(403, 'MCHAT_NO_CUSTOM_PAGE'); } $this->functions_mchat->mchat_prune(); $this->functions_mchat->mchat_add_user_session(); $this->assign_whois(); $this->assign_bbcodes_smilies(); $this->template->assign_var('MCHAT_CUSTOM_PAGE', true); $this->render_page('custom'); // Add to navlinks $this->template->assign_block_vars('navlinks', array('FORUM_NAME' => $this->user->lang('MCHAT_TITLE'), 'U_VIEW_FORUM' => $this->helper->route('dmzx_mchat_controller'))); return $this->helper->render('mchat_body.html', $this->user->lang('MCHAT_TITLE')); }