mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-07 01:06:48 +02:00
[feature/avatars] Check for gravatar when checking the avatar module_auth
PHPBB3-10018
This commit is contained in:
@@ -2732,6 +2732,14 @@ function change_database_data(&$no_updates, $version)
|
||||
_sql($sql, $errored, $error_ary);
|
||||
}
|
||||
|
||||
// update avatar module_auth
|
||||
$sql = 'UPDATE ' . MODULES_TABLE . '
|
||||
SET module_auth = \'cfg_allow_avatar && (cfg_allow_avatar_local || cfg_allow_avatar_remote || cfg_allow_avatar_upload || cfg_allow_avatar_remote_upload || cfg_allow_avatar_gravatar)\'
|
||||
WHERE module_class = \'ucp\'
|
||||
AND module_basename = \'ucp_profile\'
|
||||
AND module_mode = \'avatar\'';
|
||||
_sql($sql, $errored, $error_ary);
|
||||
|
||||
$no_updates = false;
|
||||
|
||||
if (!isset($config['assets_version']))
|
||||
|
Reference in New Issue
Block a user