aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/acp/acp_ban.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2006-02-18 13:54:12 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2006-02-18 13:54:12 +0000
commit26a6d215d0897afa82eea9b0cc0fca79d4544da5 (patch)
tree50645d56ce20cb6fa5e18a2eb1036deba65a1068 /phpBB/includes/acp/acp_ban.php
parentf2f0dc78929228619f8644d6553a02a8d1572242 (diff)
downloadforums-26a6d215d0897afa82eea9b0cc0fca79d4544da5.tar
forums-26a6d215d0897afa82eea9b0cc0fca79d4544da5.tar.gz
forums-26a6d215d0897afa82eea9b0cc0fca79d4544da5.tar.bz2
forums-26a6d215d0897afa82eea9b0cc0fca79d4544da5.tar.xz
forums-26a6d215d0897afa82eea9b0cc0fca79d4544da5.zip
- fix some tiny bugs
- fix module system (sometimes the layout is broken due to falsly deactivated categories) - auth updates (setting permissions) - fix "category jumping" bug in acp - u_action is defined by the module itself git-svn-id: file:///svn/phpbb/trunk@5558 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/acp/acp_ban.php')
-rw-r--r--phpBB/includes/acp/acp_ban.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/phpBB/includes/acp/acp_ban.php b/phpBB/includes/acp/acp_ban.php
index acef324c42..4c8a1a0dfc 100644
--- a/phpBB/includes/acp/acp_ban.php
+++ b/phpBB/includes/acp/acp_ban.php
@@ -13,6 +13,8 @@
*/
class acp_ban
{
+ var $u_action;
+
function main($id, $mode)
{
global $config, $db, $user, $auth, $template, $cache;
@@ -27,8 +29,6 @@ class acp_ban
$user->add_lang('acp/ban');
$this->tpl_name = 'acp_ban';
- $u_action = "{$phpbb_admin_path}index.$phpEx$SID&amp;i=$id&amp;mode=$mode";
-
// Ban submitted?
if ($bansubmit)
{
@@ -42,7 +42,7 @@ class acp_ban
user_ban($mode, $ban, $ban_len, $ban_len_other, $ban_exclude, $ban_reason, $ban_give_reason);
- trigger_error($user->lang['BAN_UPDATE_SUCESSFUL'] . adm_back_link($u_action));
+ trigger_error($user->lang['BAN_UPDATE_SUCESSFUL'] . adm_back_link($this->u_action));
}
else if ($unbansubmit)
{
@@ -50,7 +50,7 @@ class acp_ban
user_unban($mode, $ban);
- trigger_error($user->lang['BAN_UPDATE_SUCESSFUL'] . adm_back_link($u_action));
+ trigger_error($user->lang['BAN_UPDATE_SUCESSFUL'] . adm_back_link($this->u_action));
}
// Ban length options
@@ -176,7 +176,7 @@ class acp_ban
'S_BANNED_OPTIONS' => ($banned_options) ? true : false,
'BANNED_OPTIONS' => $banned_options,
- 'U_ACTION' => $u_action,
+ 'U_ACTION' => $this->u_action,
'U_FIND_USER' => $phpbb_root_path . "memberlist.$phpEx$SID&amp;mode=searchuser&amp;form=acp_ban&amp;field=ban",
)
);