aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/install/database_update.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/install/database_update.php')
-rw-r--r--phpBB/install/database_update.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/phpBB/install/database_update.php b/phpBB/install/database_update.php
index 150ef20ca1..3848657809 100644
--- a/phpBB/install/database_update.php
+++ b/phpBB/install/database_update.php
@@ -1115,6 +1115,15 @@ function change_database_data(&$no_updates, $version)
$_module->remove_cache_file();
+ if ($config['allow_avatar_upload'] || $config['allow_avatar_local'] || $config['allow_avatar_remote'])
+ {
+ set_config('allow_avatar', '1');
+ }
+ else
+ {
+ set_config('allow_avatar', '0');
+ }
+
$no_updates = false;
break;
}