From 7a63c9a3a8c0fbda3572d08064e71e97e49208b2 Mon Sep 17 00:00:00 2001 From: Marc Alexander Date: Thu, 12 Feb 2015 22:19:46 +0100 Subject: [PATCH] [ticket/469] Make sure to not define constants more than once B3P-469 --- acp/portal_module.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/acp/portal_module.php b/acp/portal_module.php index eb0a6b87..1d8d9a2f 100644 --- a/acp/portal_module.php +++ b/acp/portal_module.php @@ -55,8 +55,12 @@ class portal_module $this->portal_columns = $this->phpbb_container->get('board3.portal.columns'); $this->modules_manager = $this->phpbb_container->get('board3.portal.modules.manager'); $this->modules_constraints = $this->phpbb_container->get('board3.portal.modules.constraints_handler'); - define('PORTAL_MODULES_TABLE', $this->phpbb_container->getParameter('board3.portal.modules.table')); - define('PORTAL_CONFIG_TABLE', $this->phpbb_container->getParameter('board3.portal.config.table')); + + if (!defined('PORTAL_MODULES_TABLE')) + { + define('PORTAL_MODULES_TABLE', $this->phpbb_container->getParameter('board3.portal.modules.table')); + define('PORTAL_CONFIG_TABLE', $this->phpbb_container->getParameter('board3.portal.config.table')); + } if(!function_exists('obtain_portal_config')) {