Merge pull request #169 from marc1706/fix/namespaces

[fix/namespaces] add namespaces for acp modules
This commit is contained in:
Marc Alexander
2013-10-29 15:59:33 -07:00
3 changed files with 10 additions and 6 deletions

View File

@@ -7,6 +7,8 @@
* *
*/ */
namespace board3\portal\acp;
if (!defined('IN_PHPBB')) if (!defined('IN_PHPBB'))
{ {
exit; exit;
@@ -15,12 +17,12 @@ if (!defined('IN_PHPBB'))
/** /**
* @package module_install * @package module_install
*/ */
class phpbb_ext_board3_portal_acp_portal_info class portal_info
{ {
public function module() public function module()
{ {
return array( return array(
'filename' => 'phpbb_ext_board3_portal_acp_portal_module', 'filename' => '\board3\portal\acp\portal_module',
'title' => 'ACP_PORTAL', 'title' => 'ACP_PORTAL',
'version' => '2.0.0b2', 'version' => '2.0.0b2',
'modes' => array( 'modes' => array(

View File

@@ -7,6 +7,8 @@
* *
*/ */
namespace board3\portal\acp;
/** /**
* @ignore * @ignore
*/ */
@@ -15,7 +17,7 @@ if (!defined('IN_PHPBB'))
exit; exit;
} }
class phpbb_ext_board3_portal_acp_portal_module class portal_module
{ {
public $u_action; public $u_action;
public $new_config = array(); public $new_config = array();

View File

@@ -154,7 +154,7 @@ class v210_beta1 extends \phpbb\db\migration\migration
'acp', 'acp',
'ACP_PORTAL', 'ACP_PORTAL',
array( array(
'module_basename' => 'phpbb_ext_board3_portal_acp_portal_module', 'module_basename' => '\board3\portal\acp\portal_module',
'module_mode' => 'config', 'module_mode' => 'config',
'module_auth' => 'acl_a_manage_portal', 'module_auth' => 'acl_a_manage_portal',
'module_langname' => 'ACP_PORTAL_GENERAL_INFO', 'module_langname' => 'ACP_PORTAL_GENERAL_INFO',
@@ -164,7 +164,7 @@ class v210_beta1 extends \phpbb\db\migration\migration
'acp', 'acp',
'ACP_PORTAL', 'ACP_PORTAL',
array( array(
'module_basename' => 'phpbb_ext_board3_portal_acp_portal_module', 'module_basename' => '\board3\portal\acp\portal_module',
'module_mode' => 'modules', 'module_mode' => 'modules',
'module_auth' => 'acl_a_manage_portal', 'module_auth' => 'acl_a_manage_portal',
'module_langname' => 'ACP_PORTAL_MODULES', 'module_langname' => 'ACP_PORTAL_MODULES',
@@ -174,7 +174,7 @@ class v210_beta1 extends \phpbb\db\migration\migration
'acp', 'acp',
'ACP_PORTAL', 'ACP_PORTAL',
array( array(
'module_basename' => 'phpbb_ext_board3_portal_acp_portal_module', 'module_basename' => '\board3\portal\acp\portal_module',
'module_mode' => 'upload_module', 'module_mode' => 'upload_module',
'module_auth' => 'acl_a_manage_portal', 'module_auth' => 'acl_a_manage_portal',
'module_langname' => 'ACP_PORTAL_UPLOAD', 'module_langname' => 'ACP_PORTAL_UPLOAD',