[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
This commit is contained in:
Marc Alexander
2014-04-08 17:13:53 +02:00
parent 4da6d97653
commit dc7e0adf5b
8 changed files with 9 additions and 9 deletions

View File

@@ -313,7 +313,7 @@ class portal_module
'S_ERROR' => (sizeof($error)) ? true : false, 'S_ERROR' => (sizeof($error)) ? true : false,
'ERROR_MSG' => implode('<br />', $error), 'ERROR_MSG' => implode('<br />', $error),
'U_ACTION' => $this->u_action . (($module_id) ? '&amp;module_id=' . $module_id : ''), 'B3P_U_ACTION' => $this->get_module_link('config', $module_id),
'B3P_ACP_ROOT' => $this->root_path, 'B3P_ACP_ROOT' => $this->root_path,
)); ));
@@ -1199,7 +1199,7 @@ class portal_module
*/ */
protected function get_module_link($mode, $module_id) 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) . '&amp;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) ? '&amp;module_id=' . $module_id : '');
} }
/** /**

View File

@@ -14,7 +14,7 @@
<!-- ENDIF --> <!-- ENDIF -->
<!-- IF S_EDIT --> <!-- IF S_EDIT -->
<form id="acp_portal_links" method="post" action="{U_ACTION}"> <form id="acp_portal_links" method="post" action="{B3P_U_ACTION}">
<fieldset> <fieldset>
<legend>{L_ACP_PORTAL_EVENTS}</legend> <legend>{L_ACP_PORTAL_EVENTS}</legend>

View File

@@ -38,7 +38,7 @@
<!-- ENDIF --> <!-- ENDIF -->
</fieldset> </fieldset>
<!-- END mods --> <!-- END mods -->
<form id="acp_portal_config" method="post" action="{U_ACTION}"> <form id="acp_portal_config" method="post" action="{B3P_U_ACTION}">
<!-- IF SHOW_MODULE_OPTIONS --> <!-- IF SHOW_MODULE_OPTIONS -->
<fieldset> <fieldset>
<legend>{L_MODULE_OPTIONS}</legend> <legend>{L_MODULE_OPTIONS}</legend>

View File

@@ -83,7 +83,7 @@ function change_palette()
<p>{ERROR_MSG}</p> <p>{ERROR_MSG}</p>
</div> </div>
<!-- ENDIF --> <!-- ENDIF -->
<form id="acp_portal_config" method="post" action="{U_ACTION}"> <form id="acp_portal_config" method="post" action="{B3P_U_ACTION}">
<!-- IF SHOW_MODULE_OPTIONS --> <!-- IF SHOW_MODULE_OPTIONS -->
<fieldset> <fieldset>
<legend>{L_MODULE_OPTIONS}</legend> <legend>{L_MODULE_OPTIONS}</legend>

View File

@@ -14,7 +14,7 @@
<!-- ENDIF --> <!-- ENDIF -->
<!-- IF S_EDIT --> <!-- IF S_EDIT -->
<form id="acp_portal_links" method="post" action="{U_ACTION}"> <form id="acp_portal_links" method="post" action="{B3P_U_ACTION}">
<fieldset> <fieldset>
<legend>{L_ACP_PORTAL_LINKS}</legend> <legend>{L_ACP_PORTAL_LINKS}</legend>

View File

@@ -14,7 +14,7 @@
<!-- ENDIF --> <!-- ENDIF -->
<!-- IF S_EDIT --> <!-- IF S_EDIT -->
<form id="acp_portal_links" method="post" action="{U_ACTION}"> <form id="acp_portal_links" method="post" action="{B3P_U_ACTION}">
<fieldset> <fieldset>
<legend>{L_ACP_PORTAL_MENU_LINK_SETTINGS}</legend> <legend>{L_ACP_PORTAL_MENU_LINK_SETTINGS}</legend>

View File

@@ -25,7 +25,7 @@
<h1>{L_ACP_PORTAL_MODULES}</h1> <h1>{L_ACP_PORTAL_MODULES}</h1>
<p>{L_ACP_PORTAL_MODULES_EXP}</p> <p>{L_ACP_PORTAL_MODULES_EXP}</p>
<form id="acp_portal_modules" method="post" action="{U_ACTION}"> <form id="acp_portal_modules" method="post" action="{B3P_U_ACTION}">
<fieldset> <fieldset>
<dl> <dl>
<dt><label for="module_classname">{L_CHOOSE_MODULE}:</label><br /><span>{L_CHOOSE_MODULE_EXP}</span></dt> <dt><label for="module_classname">{L_CHOOSE_MODULE}:</label><br /><span>{L_CHOOSE_MODULE_EXP}</span></dt>

View File

@@ -83,7 +83,7 @@ function change_palette()
<p>{ERROR_MSG}</p> <p>{ERROR_MSG}</p>
</div> </div>
<!-- ENDIF --> <!-- ENDIF -->
<form id="acp_portal_config" method="post" action="{U_ACTION}"> <form id="acp_portal_config" method="post" action="{B3P_U_ACTION}">
<!-- IF SHOW_MODULE_OPTIONS --> <!-- IF SHOW_MODULE_OPTIONS -->
<fieldset> <fieldset>
<legend>{L_MODULE_OPTIONS}</legend> <legend>{L_MODULE_OPTIONS}</legend>