mirror of
https://github.com/phpbb/phpbb.git
synced 2025-05-05 15:16:16 +02:00
make search_indexing_state dynamic. This is related to bug #44535 - although i think we only fix the symptoms and not the cause.
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9502 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
e45bc987b4
commit
2e4174da2a
@ -593,7 +593,7 @@ class acp_search
|
||||
|
||||
ksort($this->state);
|
||||
|
||||
set_config('search_indexing_state', implode(',', $this->state));
|
||||
set_config('search_indexing_state', implode(',', $this->state), true);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -896,6 +896,7 @@ function change_database_data(&$no_updates, $version)
|
||||
// Changes from 3.0.4 to 3.0.5-dev
|
||||
case '3.0.4':
|
||||
|
||||
// Captcha config variables
|
||||
set_config('captcha_gd_wave', 0);
|
||||
set_config('captcha_gd_3d_noise', 1);
|
||||
set_config('captcha_gd_fonts', 1);
|
||||
@ -905,6 +906,12 @@ function change_database_data(&$no_updates, $version)
|
||||
// Maximum number of keywords
|
||||
set_config('max_num_search_keywords', 10);
|
||||
|
||||
// Remove static config var and put it back as dynamic variable
|
||||
$sql = 'UPDATE ' . CONFIG_TABLE . "
|
||||
SET is_dynamic = 1
|
||||
WHERE config_name = 'search_indexing_state'";
|
||||
_sql($sql, $errored, $error_ary);
|
||||
|
||||
// Hash old MD5 passwords
|
||||
$sql = 'SELECT user_id, user_password
|
||||
FROM ' . USERS_TABLE . '
|
||||
|
@ -197,7 +197,6 @@ INSERT INTO phpbb_config (config_name, config_value) VALUES ('referer_validation
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('script_path', '');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('search_block_size', '250');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('search_gc', '7200');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('search_indexing_state', '');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('search_interval', '0');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('search_anonymous_interval', '0');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('search_type', 'fulltext_native');
|
||||
@ -242,6 +241,7 @@ INSERT INTO phpbb_config (config_name, config_value, is_dynamic) VALUES ('rand_s
|
||||
INSERT INTO phpbb_config (config_name, config_value, is_dynamic) VALUES ('rand_seed_last_update', '0', 1);
|
||||
INSERT INTO phpbb_config (config_name, config_value, is_dynamic) VALUES ('record_online_date', '0', 1);
|
||||
INSERT INTO phpbb_config (config_name, config_value, is_dynamic) VALUES ('record_online_users', '0', 1);
|
||||
INSERT INTO phpbb_config (config_name, config_value, is_dynamic) VALUES ('search_indexing_state', '', 1);
|
||||
INSERT INTO phpbb_config (config_name, config_value, is_dynamic) VALUES ('search_last_gc', '0', 1);
|
||||
INSERT INTO phpbb_config (config_name, config_value, is_dynamic) VALUES ('session_last_gc', '0', 1);
|
||||
INSERT INTO phpbb_config (config_name, config_value, is_dynamic) VALUES ('upload_dir_size', '0', 1);
|
||||
|
Loading…
x
Reference in New Issue
Block a user