[feature/controller] Fix incorrect coding and docblocks in main controller

B3P-114
This commit is contained in:
Marc Alexander
2013-01-09 18:21:13 +01:00
parent 3a6640450c
commit 93b3291de9

View File

@@ -7,17 +7,17 @@
* *
*/ */
class phpbb_ext_board3_portal_controller_main extends phpbb_extension_controller class phpbb_ext_board3_portal_controller_main
{ {
/** /**
* Auth object * Auth object
* @var phpbb_aut * @var phpbb_auth
*/ */
private $auth; private $auth;
/** /**
* phpBB Config object * phpBB Config object
* @var phpbb_config * @var phpbb_config_db
*/ */
private $config; private $config;
@@ -56,7 +56,7 @@ class phpbb_ext_board3_portal_controller_main extends phpbb_extension_controller
* NOTE: The parameters of this method must match in order and type with * NOTE: The parameters of this method must match in order and type with
* the dependencies defined in the services.yml file for this service. * the dependencies defined in the services.yml file for this service.
* @param phpbb_auth $auth Auth object * @param phpbb_auth $auth Auth object
* @param phpbb_config $config phpBB Config object * @param phpbb_config_db $config phpBB Config object
* @param phpbb_template $template Template object * @param phpbb_template $template Template object
* @param phpbb_user $user User object * @param phpbb_user $user User object
* @param string $phpbb_root_path phpBB root path * @param string $phpbb_root_path phpBB root path
@@ -111,7 +111,7 @@ class phpbb_ext_board3_portal_controller_main extends phpbb_extension_controller
{ {
if (!isset($this->config['board3_enable']) || !$this->config['board3_enable'] || !$this->auth->acl_get('u_view_portal')) if (!isset($this->config['board3_enable']) || !$this->config['board3_enable'] || !$this->auth->acl_get('u_view_portal'))
{ {
redirect(append_sid($this->phpbb_root_path . 'index.' . $this->php_ext)); redirect(append_sid($this->phpbb_root_path . 'index' . $this->php_ext));
} }
} }