mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-01 14:30:32 +02:00
- Modules are not added correctly [#6370]
- Minor bug in ucp_prefs_personal.html (Opera) [#6348] - MCP-Warnings section colspan problem in Opera [#6338] - Loading extensions on install [#6332] - Adjust PM rules if folder removed [#6326] - #6318 - Coppa registration [#6306] - Quick-Mod Topic Type Changes Fail when Topic == Global [#6228] - added the possibility to change topic type for more than one topic (within mcp) git-svn-id: file:///svn/phpbb/trunk@6781 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -227,6 +227,14 @@ function message_options($id, $mode, $global_privmsgs_rules, $global_rule_condit
|
||||
$user->data['user_full_folder'] = PRIVMSGS_INBOX;
|
||||
}
|
||||
|
||||
// Now make sure the folder is not used for rules
|
||||
// We assign another folder id (the one the messages got moved to) or assign the INBOX (to not have to remove any rule)
|
||||
$sql = 'UPDATE ' . PRIVMSGS_RULES_TABLE . ' SET rule_folder_id = ';
|
||||
$sql .= ($remove_action == 1) ? $move_to : PRIVMSGS_INBOX;
|
||||
$sql .= ' WHERE rule_folder_id = ' . $remove_folder_id;
|
||||
|
||||
$db->sql_query($sql);
|
||||
|
||||
$meta_info = append_sid("{$phpbb_root_path}ucp.$phpEx", "i=pm&mode=$mode");
|
||||
$message = $user->lang['FOLDER_REMOVED'];
|
||||
|
||||
|
@@ -65,6 +65,7 @@ class ucp_register
|
||||
if (!$agreed)
|
||||
{
|
||||
$add_lang = ($change_lang) ? '&change_lang=' . urlencode($change_lang) : '';
|
||||
$add_coppa = ($coppa) ? '&coppa=1' : '';
|
||||
|
||||
if ($coppa === false && $config['coppa_enable'])
|
||||
{
|
||||
@@ -92,7 +93,7 @@ class ucp_register
|
||||
'S_SHOW_COPPA' => false,
|
||||
'S_REGISTRATION' => true,
|
||||
'S_HIDDEN_FIELDS' => ($confirm_id) ? '<input type="hidden" name="confirm_id" value="' . $confirm_id . '" />' : '',
|
||||
'S_UCP_ACTION' => append_sid("{$phpbb_root_path}ucp.$phpEx", 'mode=register' . $add_lang))
|
||||
'S_UCP_ACTION' => append_sid("{$phpbb_root_path}ucp.$phpEx", 'mode=register' . $add_lang . $add_coppa))
|
||||
);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user