Line 63 | Line 63 |
---|
'load_search' => 'bool', 'limit_search_load' => 'float', 'min_search_author_chars' => 'integer',
|
'load_search' => 'bool', 'limit_search_load' => 'float', 'min_search_author_chars' => 'integer',
|
| 'max_num_search_keywords' => 'integer',
|
'search_store_results' => 'integer', );
| 'search_store_results' => 'integer', );
|
Line 181 | Line 182 |
---|
{ trigger_error($error . adm_back_link($this->u_action), E_USER_WARNING); }
|
{ trigger_error($error . adm_back_link($this->u_action), E_USER_WARNING); }
|
| }
$search = null; $error = false; if (!$this->init_search($config['search_type'], $search, $error)) { if ($updated) { if (method_exists($search, 'config_updated')) { if ($search->config_updated()) { trigger_error($error . adm_back_link($this->u_action), E_USER_WARNING); } } } } else { trigger_error($error . adm_back_link($this->u_action), E_USER_WARNING);
|
}
trigger_error($user->lang['CONFIG_UPDATED'] . $extra_message . adm_back_link($this->u_action));
| }
trigger_error($user->lang['CONFIG_UPDATED'] . $extra_message . adm_back_link($this->u_action));
|
Line 196 | Line 217 |
---|
'SEARCH_INTERVAL' => (float) $config['search_interval'], 'SEARCH_GUEST_INTERVAL' => (float) $config['search_anonymous_interval'], 'SEARCH_STORE_RESULTS' => (int) $config['search_store_results'],
|
'SEARCH_INTERVAL' => (float) $config['search_interval'], 'SEARCH_GUEST_INTERVAL' => (float) $config['search_anonymous_interval'], 'SEARCH_STORE_RESULTS' => (int) $config['search_store_results'],
|
| 'MAX_NUM_SEARCH_KEYWORDS' => (int) $config['max_num_search_keywords'],
|
'S_SEARCH_TYPES' => $search_options, 'S_YES_SEARCH' => (bool) $config['load_search'],
| 'S_SEARCH_TYPES' => $search_options, 'S_YES_SEARCH' => (bool) $config['load_search'],
|
Line 370 | Line 392 |
---|
AND post_id <= ' . (int) ($post_counter + $this->batch_size); $result = $db->sql_query($sql);
|
AND post_id <= ' . (int) ($post_counter + $this->batch_size); $result = $db->sql_query($sql);
|
while ($row = $db->sql_fetchrow($result))
| $buffer = $db->sql_buffer_nested_transactions();
if ($buffer) { $rows = $db->sql_fetchrowset($result); $rows[] = false; // indicate end of array for while loop below
$db->sql_freeresult($result); }
$i = 0; while ($row = ($buffer ? $rows[$i++] : $db->sql_fetchrow($result)))
|
{ // Indexing enabled for this forum or global announcement? // Global announcements get indexed by default.
| { // Indexing enabled for this forum or global announcement? // Global announcements get indexed by default.
|
Line 380 | Line 413 |
---|
} $row_count++; }
|
} $row_count++; }
|
| if (!$buffer) {
|
$db->sql_freeresult($result);
|
$db->sql_freeresult($result);
|
| }
|
$post_counter += $this->batch_size; }
| $post_counter += $this->batch_size; }
|
Line 518 | Line 554 |
---|
function close_popup_js() { return "<script type=\"text/javascript\">\n" .
|
function close_popup_js() { return "<script type=\"text/javascript\">\n" .
|
"<!--\n" .
| "// <![CDATA[\n" .
|
" close_waitscreen = 1;\n" .
|
" close_waitscreen = 1;\n" .
|
"//-->\n" .
| "// ]]>\n" .
|
"</script>\n"; }
| "</script>\n"; }
|
Line 571 | Line 607 |
---|
ksort($this->state);
|
ksort($this->state);
|
set_config('search_indexing_state', implode(',', $this->state));
| set_config('search_indexing_state', implode(',', $this->state), true);
|
}
/**
| }
/**
|