diff options
Diffstat (limited to 'phpBB/includes')
| -rw-r--r-- | phpBB/includes/acp/acp_language.php | 9 | ||||
| -rw-r--r-- | phpBB/includes/acp/acp_search.php | 4 | ||||
| -rw-r--r-- | phpBB/includes/functions_convert.php | 8 | ||||
| -rw-r--r-- | phpBB/includes/ucp/ucp_groups.php | 1 |
4 files changed, 14 insertions, 8 deletions
diff --git a/phpBB/includes/acp/acp_language.php b/phpBB/includes/acp/acp_language.php index 16f75d9c92..e83445eeed 100644 --- a/phpBB/includes/acp/acp_language.php +++ b/phpBB/includes/acp/acp_language.php @@ -241,6 +241,9 @@ class acp_language $entry .= "\t),\n"; fwrite($fp, $entry); } + + $footer = ");\n\n?>"; + fwrite($fp, $footer); } else { @@ -253,10 +256,10 @@ class acp_language $entry = $this->format_lang_array($key, $value); fwrite($fp, $entry); } - } - $footer = "));\n\n?>"; - fwrite($fp, $footer); + $footer = "));\n\n?>"; + fwrite($fp, $footer); + } } fclose($fp); diff --git a/phpBB/includes/acp/acp_search.php b/phpBB/includes/acp/acp_search.php index 342ec34e29..ad3e770fbb 100644 --- a/phpBB/includes/acp/acp_search.php +++ b/phpBB/includes/acp/acp_search.php @@ -338,7 +338,9 @@ class acp_search while ($row = $db->sql_fetchrow($result)) { - if ($forums[$row['forum_id']]) + // Indexing enabled for this forum or global announcement? + // Global announcements get indexed by default. + if (!$row['forum_id'] || (isset($forums[$row['forum_id']]) && $forums[$row['forum_id']])) { $this->search->index('post', $row['post_id'], $row['post_text'], $row['post_subject'], $row['poster_id'], $row['forum_id']); } diff --git a/phpBB/includes/functions_convert.php b/phpBB/includes/functions_convert.php index 1d78b29968..499d62de3d 100644 --- a/phpBB/includes/functions_convert.php +++ b/phpBB/includes/functions_convert.php @@ -985,7 +985,7 @@ function set_user_options() foreach ($keyoptions as $key => $key_ary) { - $value = (isset($row[$key])) ? (int) $row[$key] : $key_ary['default']; + $value = (isset($convert_row[$key])) ? (int) $convert_row[$key] : $key_ary['default']; if ($value && !($option_field & 1 << $key_ary['bit'])) { @@ -1158,7 +1158,7 @@ function get_config() } else if ($convert->config_schema['table_format'] == 'file') { - $filename = $convert->convertor_status['forum_path'] . '/' . $convert->config_schema['filename']; + $filename = $convert->options['forum_path'] . '/' . $convert->config_schema['filename']; if (!file_exists($filename)) { $convert->p_master->error($user->lang['FILE_NOT_FOUND'] . ': ' . $filename, __LINE__, __FILE__); @@ -2278,7 +2278,7 @@ function relative_base($path, $is_relative = true, $line = false, $file = false) return $path; } - if (empty($convert->convertor_status['forum_path']) && $is_relative) + if (empty($convert->options['forum_path']) && $is_relative) { $line = $line ? $line : __LINE__; $file = $file ? $file : __FILE__; @@ -2286,7 +2286,7 @@ function relative_base($path, $is_relative = true, $line = false, $file = false) $convert->p_master->error($user->lang['CONV_ERROR_NO_FORUM_PATH'], $line, $file); } - return $convert->convertor_status['forum_path'] . '/' . $path; + return $convert->options['forum_path'] . '/' . $path; } ?>
\ No newline at end of file diff --git a/phpBB/includes/ucp/ucp_groups.php b/phpBB/includes/ucp/ucp_groups.php index 119f496d21..c97fc99652 100644 --- a/phpBB/includes/ucp/ucp_groups.php +++ b/phpBB/includes/ucp/ucp_groups.php @@ -799,6 +799,7 @@ class ucp_groups group_user_attributes('default', $group_id, $mark_ary, false, $group_row['group_name'], $group_row); } + group_update_listings($group_id); $user->add_lang('acp/groups'); trigger_error($user->lang['GROUP_DEFS_UPDATED'] . $return_page); |
