[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:
@@ -313,7 +313,7 @@ class portal_module
|
||||
'S_ERROR' => (sizeof($error)) ? true : false,
|
||||
'ERROR_MSG' => implode('<br />', $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 : '');
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user