mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
[ticket/11103] Create user loader class, update for DIC
Create a very basic user loader class to handle querying/storing user data in a centralized location. Use DIC collection service for notification types/methods. Cleanup unused dependencies. Fix some other issues. PHPBB3-11103
This commit is contained in:
@@ -2814,19 +2814,19 @@ function change_database_data(&$no_updates, $version)
|
||||
$convert_notifications = array(
|
||||
array(
|
||||
'check' => ($config['allow_topic_notify']),
|
||||
'item_type' => 'phpbb_notification_type_post',
|
||||
'item_type' => 'post',
|
||||
),
|
||||
array(
|
||||
'check' => ($config['allow_forum_notify']),
|
||||
'item_type' => 'phpbb_notification_type_topic',
|
||||
'item_type' => 'topic',
|
||||
),
|
||||
array(
|
||||
'check' => ($config['allow_bookmarks']),
|
||||
'item_type' => 'phpbb_notification_type_bookmark',
|
||||
'item_type' => 'bookmark',
|
||||
),
|
||||
array(
|
||||
'check' => ($config['allow_privmsg']),
|
||||
'item_type' => 'phpbb_notification_type_pm',
|
||||
'item_type' => 'pm',
|
||||
),
|
||||
);
|
||||
|
||||
@@ -2853,7 +2853,7 @@ function change_database_data(&$no_updates, $version)
|
||||
'item_type' => $convert_data['item_type'],
|
||||
'item_id' => 0,
|
||||
'user_id' => $row['user_id'],
|
||||
'method' => 'phpbb_notification_method_email',
|
||||
'method' => 'email',
|
||||
)), $errored, $error_ary);
|
||||
}
|
||||
|
||||
@@ -2863,7 +2863,7 @@ function change_database_data(&$no_updates, $version)
|
||||
'item_type' => $convert_data['item_type'],
|
||||
'item_id' => 0,
|
||||
'user_id' => $row['user_id'],
|
||||
'method' => 'phpbb_notification_method_jabber',
|
||||
'method' => 'jabber',
|
||||
)), $errored, $error_ary);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user