From d24f5d734b2a2f059005ce45241d6564fea047e3 Mon Sep 17 00:00:00 2001
From: Meik Sievertsen
Date: Tue, 31 May 2005 18:54:00 +0000
Subject: [PATCH] some language additions and tiny bugfixes related to the
request_var change
git-svn-id: file:///svn/phpbb/trunk@5156 89ea8834-ac86-4346-8a33-228a782c2dd0
---
phpBB/adm/admin_board.php | 2 +-
phpBB/adm/admin_groups.php | 88 ++++++++++++++++++++------------
phpBB/index.php | 3 +-
phpBB/language/en/admin.php | 14 +++--
phpBB/language/en/common.php | 1 +
phpBB/language/en/groups.php | 2 +
phpBB/language/en/memberlist.php | 5 ++
7 files changed, 76 insertions(+), 39 deletions(-)
diff --git a/phpBB/adm/admin_board.php b/phpBB/adm/admin_board.php
index 7217a70113..64dca4d6e4 100644
--- a/phpBB/adm/admin_board.php
+++ b/phpBB/adm/admin_board.php
@@ -238,7 +238,7 @@ if (isset($display_vars['lang']))
}
$new = $config;
-$cfg_array = (isset($_REQUEST['config'])) ? request_var('config', '') : $new;
+$cfg_array = (isset($_REQUEST['config'])) ? request_var('config', array('' => '')) : $new;
// We go through the display_vars to make sure no one is trying to set variables he/she is not allowed to...
foreach ($display_vars['vars'] as $config_name => $null)
diff --git a/phpBB/adm/admin_groups.php b/phpBB/adm/admin_groups.php
index 9187b66ddc..c758f4978d 100644
--- a/phpBB/adm/admin_groups.php
+++ b/phpBB/adm/admin_groups.php
@@ -42,7 +42,7 @@ $mode = request_var('mode', '');
$action = (isset($_POST['add'])) ? 'add' : ((isset($_POST['addusers'])) ? 'addusers' : request_var('action', ''));
$group_id = request_var('g', 0);
$mark_ary = request_var('mark', array(0));
-$name_ary = request_var('usernames', array('' => 0));
+$name_ary = request_var('usernames', '');
$leader = request_var('leader', 0);
$default = request_var('default', 0);
$start = request_var('start', 0);
@@ -235,6 +235,9 @@ function marklist(match, status)
trigger_error($user->lang['NO_GROUP']);
}
+ $error = array();
+ $user->add_lang('ucp');
+
// Did we submit?
if ($update)
{
@@ -251,6 +254,8 @@ function marklist(match, status)
$receive_pm = isset($_REQUEST['group_receive_pm']) ? 1 : 0;
$message_limit = request_var('group_message_limit', 0);
+ $avatar = '';
+
if (!empty($_FILES['uploadfile']['tmp_name']) || $data['uploadurl'] || $data['remotelink'])
{
$data['width'] = request_var('width', '');
@@ -361,6 +366,8 @@ function marklist(match, status)
$avatar_img = '
';
}
+ $display_gallery = (isset($_POST['displaygallery'])) ? true : false;
+
?>
-
+
lang['GROUP_MEMBERS_EXPLAIN']; ?>
-