1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-17 22:11:26 +02:00

- 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
This commit is contained in:
Meik Sievertsen
2006-02-18 13:54:12 +00:00
parent f2f0dc7892
commit 26a6d215d0
29 changed files with 954 additions and 866 deletions

View File

@@ -13,6 +13,8 @@
*/
class acp_ranks
{
var $u_action;
function main($id, $mode)
{
global $db, $user, $auth, $template, $cache;
@@ -29,8 +31,6 @@ class acp_ranks
$this->tpl_name = 'acp_ranks';
$this->page_title = 'ACP_MANAGE_RANKS';
$u_action = "{$phpbb_admin_path}index.$phpEx$SID&i=$id&mode=$mode";
switch ($action)
{
case 'save':
@@ -48,7 +48,7 @@ class acp_ranks
if (!$rank_title)
{
trigger_error($user->lang['NO_RANK_TITLE'] . adm_back_link($u_action));
trigger_error($user->lang['NO_RANK_TITLE'] . adm_back_link($this->u_action));
}
$sql_ary = array(
@@ -72,7 +72,7 @@ class acp_ranks
$cache->destroy('ranks');
trigger_error($message . adm_back_link($u_action));
trigger_error($message . adm_back_link($this->u_action));
break;
@@ -92,11 +92,11 @@ class acp_ranks
$cache->destroy('ranks');
trigger_error($user->lang['RANK_REMOVED'] . adm_back_link($u_action));
trigger_error($user->lang['RANK_REMOVED'] . adm_back_link($this->u_action));
}
else
{
trigger_error($user->lang['MUST_SELECT_RANK'] . adm_back_link($u_action));
trigger_error($user->lang['MUST_SELECT_RANK'] . adm_back_link($this->u_action));
}
break;
@@ -154,9 +154,9 @@ class acp_ranks
$template->assign_vars(array(
'S_EDIT' => true,
'U_BACK' => $u_action,
'U_BACK' => $this->u_action,
'RANKS_PATH' => $phpbb_root_path . $config['ranks_path'],
'U_ACTION' => $u_action . '&id=' . $rank_id,
'U_ACTION' => $this->u_action . '&id=' . $rank_id,
'RANK_TITLE' => (isset($ranks['rank_title'])) ? $ranks['rank_title'] : '',
'S_FILENAME_LIST' => $filename_list,
@@ -172,7 +172,7 @@ class acp_ranks
}
$template->assign_vars(array(
'U_ACTION' => $u_action)
'U_ACTION' => $this->u_action)
);
$sql = 'SELECT *
@@ -190,8 +190,8 @@ class acp_ranks
'RANK_TITLE' => $row['rank_title'],
'MIN_POSTS' => $row['rank_min'],
'U_EDIT' => $u_action . '&action=edit&id=' . $row['rank_id'],
'U_DELETE' => $u_action . '&action=delete&id=' . $row['rank_id'])
'U_EDIT' => $this->u_action . '&action=edit&id=' . $row['rank_id'],
'U_DELETE' => $this->u_action . '&action=delete&id=' . $row['rank_id'])
);
}
$db->sql_freeresult($result);