mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-27 21:58:52 +00:00
- fix minor bugs
git-svn-id: file:///svn/phpbb/trunk@5490 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
4b08c14417
commit
c0214e35e1
5 changed files with 13 additions and 11 deletions
|
@ -226,7 +226,7 @@
|
|||
</dl>
|
||||
<dl>
|
||||
<dt><label for="allowed">{L_ALLOWED}:</label></dt>
|
||||
<dd><input type="checkbox" id="allowed" name="allow_group" value="{GROUP_ID}"<!-- IF ALLOW_GROUP --> cecked="checked"<!-- ENDIF --> /></dd>
|
||||
<dd><input type="checkbox" id="allowed" name="allow_group" value="1"<!-- IF ALLOW_GROUP --> checked="checked"<!-- ENDIF --> /></dd>
|
||||
</dl>
|
||||
<dl>
|
||||
<dt><label for="allow_in_pm">{L_ALLOW_IN_PM}:</label></dt>
|
||||
|
@ -254,7 +254,7 @@
|
|||
</dl>
|
||||
<dl>
|
||||
<dt><label for="allowed_forums">{L_ALLOWED_FORUMS}:</label><br /><span>{L_ALLOWED_FORUMS_EXPLAIN}</span></dt>
|
||||
<dd><input type="radio" id="allowed_forums" class="radio" name="forum_select" value="0"<!-- IF not S_FORUM_IDS --> checked="checked"<!-- ENDIF --> class="radio" /> {L_ALLOW_ALL_FORUMS} <input type="radio" class="radio" name="forum_select" value="1"<!-- IF S_FORUM_IDS --> checked="checked"<!-- ENDIF --> class="radio" /> {L_ALLOW_SELECTED_FORUMS}</dd>
|
||||
<dd><input type="radio" id="allowed_forums" class="radio" name="forum_select" value="0"<!-- IF not S_FORUM_IDS --> checked="checked"<!-- ENDIF --> /> {L_ALLOW_ALL_FORUMS} <input type="radio" class="radio" name="forum_select" value="1"<!-- IF S_FORUM_IDS --> checked="checked"<!-- ENDIF --> /> {L_ALLOW_SELECTED_FORUMS}</dd>
|
||||
<dd><select name="allowed_forums[]" multiple="multiple" size="8">{S_FORUM_ID_OPTIONS}</select></dd>
|
||||
</dl>
|
||||
</fieldset>
|
||||
|
|
|
@ -217,18 +217,19 @@ class cache extends acm
|
|||
|
||||
if (is_array($check))
|
||||
{
|
||||
// Check for private messaging
|
||||
// Check for private messaging AND all forums allowed
|
||||
if (sizeof($check) == 1 && $check[0] == 0)
|
||||
{
|
||||
$allowed = true;
|
||||
continue;
|
||||
}
|
||||
|
||||
$allowed = (!in_array($forum_id, $check)) ? false : true;
|
||||
}
|
||||
else
|
||||
{
|
||||
$allowed = ($forum_id == 0) ? false : true;
|
||||
$allowed = (!in_array($forum_id, $check)) ? false : true;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$allowed = ($forum_id === 0) ? false : true;
|
||||
}
|
||||
|
||||
if ($allowed)
|
||||
|
@ -315,7 +316,7 @@ class cache extends acm
|
|||
continue;
|
||||
}
|
||||
|
||||
if (!isset($parsed_array[$theme[$key . '_id']]) || (($config['load_tplcompile'] && @filemtime($filename) > $parsed_array['filetime'])))
|
||||
if (!isset($parsed_array['filetime']) || (($config['load_tplcompile'] && @filemtime($filename) > $parsed_array['filetime'])))
|
||||
{
|
||||
$reparse = true;
|
||||
}
|
||||
|
|
|
@ -435,6 +435,7 @@ class acp_attachments
|
|||
$allow_in_pm = isset($_POST['allow_in_pm']) ? true : false;
|
||||
$max_filesize = request_var('max_filesize', 0);
|
||||
$max_filesize = ($size_select == 'kb') ? round($max_filesize * 1024) : (($size_select == 'mb') ? round($max_filesize * 1048576) : $max_filesize);
|
||||
$allow_group = (isset($_POST['allow_group'])) ? 1 : 0;
|
||||
|
||||
if ($max_filesize == $config['max_filesize'])
|
||||
{
|
||||
|
@ -449,7 +450,7 @@ class acp_attachments
|
|||
$group_ary = array(
|
||||
'group_name' => $group_name,
|
||||
'cat_id' => request_var('special_category', ATTACHMENT_CATEGORY_NONE),
|
||||
'allow_group' => (isset($_POST['allow_group'])) ? 1 : 0,
|
||||
'allow_group' => $allow_group,
|
||||
'download_mode' => request_var('download_mode', INLINE_LINK),
|
||||
'upload_icon' => ($upload_icon == 'no_image') ? '' : $upload_icon,
|
||||
'max_filesize' => $max_filesize,
|
||||
|
|
|
@ -1479,7 +1479,7 @@ function extension_allowed($forum_id, $extension, &$extensions)
|
|||
|
||||
if (is_array($check))
|
||||
{
|
||||
// Check for private messaging
|
||||
// Check for private messaging AND all forums allowed
|
||||
if (sizeof($check) == 1 && $check[0] == 0)
|
||||
{
|
||||
return true;
|
||||
|
|
|
@ -1771,7 +1771,7 @@ function submit_post($mode, $subject, $username, $topic_type, &$poll, &$data, $u
|
|||
}
|
||||
|
||||
$update_sql = update_post_information('topic', $data['topic_id'], true);
|
||||
if (sizeof($update))
|
||||
if (sizeof($update_sql))
|
||||
{
|
||||
$sql_data[TOPICS_TABLE]['stat'][] = implode(', ', $update_sql[$data['topic_id']]);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue