From dc7e0adf5b755018134071113e2557ef1cb2a808 Mon Sep 17 00:00:00 2001 From: Marc Alexander Date: Tue, 8 Apr 2014 17:13:53 +0200 Subject: [PATCH] [ticket/102] Use B3P_U_ACTION instead of U_ACTION U_ACTION couldn't be changed for some reason. Therefore we are now using our own template variable. B3P-102 --- acp/portal_module.php | 4 ++-- adm/style/portal/acp_portal_calendar.html | 2 +- adm/style/portal/acp_portal_config.html | 2 +- adm/style/portal/acp_portal_custom.html | 2 +- adm/style/portal/acp_portal_links.html | 2 +- adm/style/portal/acp_portal_menu.html | 2 +- adm/style/portal/acp_portal_modules.html | 2 +- adm/style/portal/acp_portal_welcome.html | 2 +- 8 files changed, 9 insertions(+), 9 deletions(-) diff --git a/acp/portal_module.php b/acp/portal_module.php index 8ef0538d..d0ffe52f 100644 --- a/acp/portal_module.php +++ b/acp/portal_module.php @@ -313,7 +313,7 @@ class portal_module 'S_ERROR' => (sizeof($error)) ? true : false, 'ERROR_MSG' => implode('
', $error), - 'U_ACTION' => $this->u_action . (($module_id) ? '&module_id=' . $module_id : ''), + 'B3P_U_ACTION' => $this->get_module_link('config', $module_id), 'B3P_ACP_ROOT' => $this->root_path, )); @@ -1199,7 +1199,7 @@ class portal_module */ protected function get_module_link($mode, $module_id) { - return preg_replace(array('/i=[0-9]+/', '/mode=[a-zA-Z0-9_]+/'), array('i=%5C' . str_replace('\\', '%5C', __CLASS__), 'mode=' . $mode), $this->u_action) . '&module_id=' . $module_id; + return preg_replace(array('/i=[0-9]+/', '/mode=[a-zA-Z0-9_]+/'), array('i=%5C' . str_replace('\\', '%5C', __CLASS__), 'mode=' . $mode), $this->u_action) . (($module_id) ? '&module_id=' . $module_id : ''); } /** diff --git a/adm/style/portal/acp_portal_calendar.html b/adm/style/portal/acp_portal_calendar.html index a0739def..cf23e633 100644 --- a/adm/style/portal/acp_portal_calendar.html +++ b/adm/style/portal/acp_portal_calendar.html @@ -14,7 +14,7 @@ -