mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-06 08:47:45 +02:00
Merge remote-tracking branch 'upstream/develop' into feature/dic
* upstream/develop: (259 commits) [prep-release-3.0.11] Bumping version number for 3.0.11 final. [feature/php-events] Fix doc of core.viewonline_overwrite_location [feature/php-events] Fix doc of core.user_set_default_group [feature/php-events] Fix doc of core.generate_smilies_after [feature/php-events] Fix doc of core.delete_user_after [feature/php-events] Fix doc of core.delete_user_before [feature/php-events] Fix doc of core.update_username [feature/php-events] Fix doc of core.memberlist_prepare_profile_data [feature/php-events] Fix doc and position of viewonline_overwrite_location [feature/php-events] Fix doc of core.viewtopic_get_post_data [feature/php-events] Fix doc of core.viewtopic_cache_guest_data [ticket/11061] Add the --dev flag to the composer instructions in README [ticket/11060] Make sure pyrus can install everything on travis [ticket/11059] Use https for the README logo [feature/php-events] Fix acp_manage_forums_update_data_before and is_new_forum [feature/php-events] Fix core.acp_manage_forums_update_data_after vars [ticket/11032] fix language of error displayed [ticket/11052] update search backend constructor everywhere [ticket/11052] pass parametes to search construct while posting [ticket/11054] Fixed $config var description ... Conflicts: phpBB/includes/cron/task/core/tidy_cache.php phpBB/includes/cron/task/core/tidy_search.php
This commit is contained in:
@@ -1079,6 +1079,8 @@ function database_update_info()
|
||||
),
|
||||
),
|
||||
),
|
||||
// No changes from 3.0.11-RC2 to 3.0.11
|
||||
'3.0.11-RC2' => array(),
|
||||
|
||||
/** @todo DROP LOGIN_ATTEMPT_TABLE.attempt_id in 3.0.12-RC1 */
|
||||
|
||||
@@ -2222,6 +2224,10 @@ function change_database_data(&$no_updates, $version)
|
||||
case '3.0.11-RC1':
|
||||
break;
|
||||
|
||||
// No changes from 3.0.11-RC2 to 3.0.11
|
||||
case '3.0.11-RC2':
|
||||
break;
|
||||
|
||||
// Changes from 3.1.0-dev to 3.1.0-A1
|
||||
case '3.1.0-dev':
|
||||
|
||||
@@ -2277,6 +2283,16 @@ function change_database_data(&$no_updates, $version)
|
||||
set_config('fulltext_postgres_max_word_len', 254);
|
||||
}
|
||||
|
||||
if (!isset($config['fulltext_sphinx_stopwords']))
|
||||
{
|
||||
set_config('fulltext_sphinx_stopwords', 0);
|
||||
}
|
||||
|
||||
if (!isset($config['fulltext_sphinx_indexer_mem_limit']))
|
||||
{
|
||||
set_config('fulltext_sphinx_indexer_mem_limit', 512);
|
||||
}
|
||||
|
||||
if (!isset($config['load_jquery_cdn']))
|
||||
{
|
||||
set_config('load_jquery_cdn', 0);
|
||||
|
@@ -569,7 +569,7 @@ class install_convert extends module
|
||||
*/
|
||||
function convert_data($sub)
|
||||
{
|
||||
global $template, $user, $phpbb_root_path, $phpEx, $db, $lang, $config, $cache;
|
||||
global $template, $user, $phpbb_root_path, $phpEx, $db, $lang, $config, $cache, $auth;
|
||||
global $convert, $convert_row, $message_parser, $skip_rows, $language;
|
||||
global $request;
|
||||
|
||||
@@ -750,7 +750,7 @@ class install_convert extends module
|
||||
}
|
||||
|
||||
$error = false;
|
||||
$convert->fulltext_search = new $search_type($error);
|
||||
$convert->fulltext_search = new $search_type($error, $phpbb_root_path, $phpEx, $auth, $config, $db, $user);
|
||||
|
||||
if ($error)
|
||||
{
|
||||
|
@@ -1427,7 +1427,7 @@ class install_install extends module
|
||||
*/
|
||||
function build_search_index($mode, $sub)
|
||||
{
|
||||
global $db, $lang, $phpbb_root_path, $phpEx, $config;
|
||||
global $db, $lang, $phpbb_root_path, $phpEx, $config, $auth, $user;
|
||||
|
||||
// Obtain any submitted data
|
||||
$data = $this->get_submitted_data();
|
||||
@@ -1463,7 +1463,7 @@ class install_install extends module
|
||||
set_config_count(null, null, null, $config);
|
||||
|
||||
$error = false;
|
||||
$search = new phpbb_search_fulltext_native($error);
|
||||
$search = new phpbb_search_fulltext_native($error, $phpbb_root_path, $phpEx, $auth, $config, $db, $user);
|
||||
|
||||
$sql = 'SELECT post_id, post_subject, post_text, poster_id, forum_id
|
||||
FROM ' . POSTS_TABLE;
|
||||
|
@@ -349,7 +349,7 @@ class install_update extends module
|
||||
|
||||
// We are directly within an update. To make sure our update list is correct we check its status.
|
||||
$update_list = ($request->variable('check_again', false, false, phpbb_request_interface::POST)) ? false : $cache->get('_update_list');
|
||||
$modified = ($update_list !== false) ? @filemtime($cache->cache_dir . 'data_update_list.' . $phpEx) : 0;
|
||||
$modified = ($update_list !== false) ? @filemtime($cache->get_driver()->cache_dir . 'data_update_list.' . $phpEx) : 0;
|
||||
|
||||
// Make sure the list is up-to-date
|
||||
if ($update_list !== false)
|
||||
|
@@ -127,6 +127,8 @@ INSERT INTO phpbb_config (config_name, config_value) VALUES ('fulltext_native_mi
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('fulltext_postgres_max_word_len', '254');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('fulltext_postgres_min_word_len', '4');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('fulltext_postgres_ts_name', 'simple');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('fulltext_sphinx_indexer_mem_limit', '512');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('fulltext_sphinx_stopwords', '0');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('gzip_compress', '0');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('hot_threshold', '25');
|
||||
INSERT INTO phpbb_config (config_name, config_value) VALUES ('icons_path', 'images/icons');
|
||||
|
Reference in New Issue
Block a user