mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-04 15:57:45 +02:00
Merge branch 'develop' into feature/extension-manager
* develop: (93 commits) [ticket/10157] Add notification to update cpfs when installing a language. [ticket/10185] Always set board startdate on conversion [ticket/10419] Reword the language strings [ticket/9361] View correct error messages when editing account information [ticket/10457] Undefined variable $request, when print-viewing PMs [ticket/10452] Fix xHTML errors when print-viewing PMs [ticket/9066] Move regex into get_preg_expression function and add tests [ticket/10254] Add "phpBB Group" to "Modified by" in prosilver stylesheet.css [ticket/10254] Removing the subsilver2 NOTE, incompatible with phpBB.com. [ticket/10254] Removing the NOTE as it is incompatible with phpBB.com. [ticket/10254] Remove subsilver2 as default style on theme. [ticket/10254] Remove style names from themes and fix some informations on it. [ticket/7138] Allow simple header and footer for trigger_error() messages [ticket/9066] Disallow some database prefix to prevent same errors and problems [ticket/10365] Fix up S_POST_UNAPPROVED check, make it easier to read [ticket/10437] Do not display announcements that are waiting for approval [ticket/10087] Organize bans in acp_baninto optgroups [ticket/8616] Include old U_INBOX var for BC [ticket/10435] Remove global announcement from forums total topic count [ticket/10435] Readd local announcements to total topic count in viewforum ... Conflicts: phpBB/install/database_update.php
This commit is contained in:
@@ -2113,6 +2113,11 @@ function change_database_data(&$no_updates, $version)
|
||||
case '3.0.9-RC4':
|
||||
break;
|
||||
|
||||
// Changes from 3.0.9 to 3.0.10-RC1
|
||||
case '3.0.9':
|
||||
set_config('email_max_chunk_size', '50');
|
||||
break;
|
||||
|
||||
// Changes from 3.1.0-dev to 3.1.0-A1
|
||||
case '3.1.0-dev':
|
||||
|
||||
@@ -2146,46 +2151,80 @@ function change_database_data(&$no_updates, $version)
|
||||
|
||||
$db->sql_freeresult($result);
|
||||
|
||||
// try to guess the new auto loaded search class name
|
||||
// works for native and mysql fulltext
|
||||
set_config('search_type', 'phpbb_search_' . $config['search_type']);
|
||||
if (substr($config['search_type'], 0, 6) !== 'phpbb_')
|
||||
{
|
||||
// try to guess the new auto loaded search class name
|
||||
// works for native and mysql fulltext
|
||||
set_config('search_type', 'phpbb_search_' . $config['search_type']);
|
||||
}
|
||||
|
||||
set_config('use_system_cron', 0);
|
||||
if (!isset($config['load_jquery_cdn']))
|
||||
{
|
||||
set_config('load_jquery_cdn', 0);
|
||||
set_config('load_jquery_url', '//ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js');
|
||||
}
|
||||
|
||||
$sql = 'UPDATE ' . GROUPS_TABLE . '
|
||||
SET group_teampage = 1
|
||||
WHERE group_type = ' . GROUP_SPECIAL . "
|
||||
AND group_name = 'ADMINISTRATORS'";
|
||||
_sql($sql, $errored, $error_ary);
|
||||
if (!isset($config['use_system_cron']))
|
||||
{
|
||||
set_config('use_system_cron', 0);
|
||||
}
|
||||
|
||||
$sql = 'UPDATE ' . GROUPS_TABLE . '
|
||||
SET group_teampage = 2
|
||||
WHERE group_type = ' . GROUP_SPECIAL . "
|
||||
AND group_name = 'GLOBAL_MODERATORS'";
|
||||
_sql($sql, $errored, $error_ary);
|
||||
|
||||
set_config('legend_sort_groupname', '0');
|
||||
set_config('teampage_multiple', '1');
|
||||
set_config('teampage_forums', '1');
|
||||
|
||||
$sql = 'SELECT group_id
|
||||
$sql = 'SELECT group_teampage
|
||||
FROM ' . GROUPS_TABLE . '
|
||||
WHERE group_legend = 1
|
||||
ORDER BY group_name ASC';
|
||||
$result = $db->sql_query($sql);
|
||||
WHERE group_teampage > 0';
|
||||
$result = $db->sql_query_limit($sql, 1);
|
||||
$added_groups_teampage = (bool) $db->sql_fetchfield('group_teampage');
|
||||
$db->sql_freeresult($result);
|
||||
|
||||
$next_legend = 1;
|
||||
while ($row = $db->sql_fetchrow($result))
|
||||
if (!$added_groups_teampage)
|
||||
{
|
||||
$sql = 'UPDATE ' . GROUPS_TABLE . '
|
||||
SET group_legend = ' . $next_legend . '
|
||||
WHERE group_id = ' . (int) $row['group_id'];
|
||||
SET group_teampage = 1
|
||||
WHERE group_type = ' . GROUP_SPECIAL . "
|
||||
AND group_name = 'ADMINISTRATORS'";
|
||||
_sql($sql, $errored, $error_ary);
|
||||
|
||||
$next_legend++;
|
||||
$sql = 'UPDATE ' . GROUPS_TABLE . '
|
||||
SET group_teampage = 2
|
||||
WHERE group_type = ' . GROUP_SPECIAL . "
|
||||
AND group_name = 'GLOBAL_MODERATORS'";
|
||||
_sql($sql, $errored, $error_ary);
|
||||
}
|
||||
|
||||
if (!isset($config['legend_sort_groupname']))
|
||||
{
|
||||
set_config('legend_sort_groupname', '0');
|
||||
set_config('teampage_forums', '1');
|
||||
}
|
||||
|
||||
$sql = 'SELECT group_legend
|
||||
FROM ' . GROUPS_TABLE . '
|
||||
WHERE group_teampage > 1';
|
||||
$result = $db->sql_query_limit($sql, 1);
|
||||
$updated_group_legend = (bool) $db->sql_fetchfield('group_teampage');
|
||||
$db->sql_freeresult($result);
|
||||
unset($next_legend);
|
||||
|
||||
if (!$updated_group_legend)
|
||||
{
|
||||
$sql = 'SELECT group_id
|
||||
FROM ' . GROUPS_TABLE . '
|
||||
WHERE group_legend = 1
|
||||
ORDER BY group_name ASC';
|
||||
$result = $db->sql_query($sql);
|
||||
|
||||
$next_legend = 1;
|
||||
while ($row = $db->sql_fetchrow($result))
|
||||
{
|
||||
$sql = 'UPDATE ' . GROUPS_TABLE . '
|
||||
SET group_legend = ' . $next_legend . '
|
||||
WHERE group_id = ' . (int) $row['group_id'];
|
||||
_sql($sql, $errored, $error_ary);
|
||||
|
||||
$next_legend++;
|
||||
}
|
||||
$db->sql_freeresult($result);
|
||||
unset($next_legend);
|
||||
}
|
||||
|
||||
// Install modules
|
||||
$modules_to_install = array(
|
||||
@@ -2206,7 +2245,7 @@ function change_database_data(&$no_updates, $version)
|
||||
);
|
||||
|
||||
_add_modules($modules_to_install);
|
||||
|
||||
|
||||
$sql = 'DELETE FROM ' . MODULES_TABLE . "
|
||||
WHERE module_basename = 'styles' AND module_mode = 'imageset'";
|
||||
_sql($sql, $errored, $error_ary);
|
||||
@@ -2289,7 +2328,15 @@ function change_database_data(&$no_updates, $version)
|
||||
}
|
||||
|
||||
// Allow custom profile fields in pm templates
|
||||
set_config('load_cpf_pm', '0');
|
||||
if (!isset($config['load_cpf_pm']))
|
||||
{
|
||||
set_config('load_cpf_pm', '0');
|
||||
}
|
||||
|
||||
if (!isset($config['teampage_memberships']))
|
||||
{
|
||||
set_config('teampage_memberships', '1');
|
||||
}
|
||||
|
||||
$no_updates = false;
|
||||
break;
|
||||
|
Reference in New Issue
Block a user