diff options
author | Igor Wiedler <igor@wiedler.ch> | 2010-10-21 10:22:03 +0200 |
---|---|---|
committer | Igor Wiedler <igor@wiedler.ch> | 2010-10-21 10:22:03 +0200 |
commit | b9afa26280bcb2aa6d11f8b15faec4aad23dced8 (patch) | |
tree | 37e57fa264807697dfa2b0e36a23a532f916eb2d /phpBB/install/database_update.php | |
parent | a27811b1d4d82f34c145978f3dbac3e2b54ed1ca (diff) | |
download | forums-b9afa26280bcb2aa6d11f8b15faec4aad23dced8.tar forums-b9afa26280bcb2aa6d11f8b15faec4aad23dced8.tar.gz forums-b9afa26280bcb2aa6d11f8b15faec4aad23dced8.tar.bz2 forums-b9afa26280bcb2aa6d11f8b15faec4aad23dced8.tar.xz forums-b9afa26280bcb2aa6d11f8b15faec4aad23dced8.zip |
[ticket/9807] Update existing module permissions in database
PHPBB3-9807
Diffstat (limited to 'phpBB/install/database_update.php')
-rw-r--r-- | phpBB/install/database_update.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/phpBB/install/database_update.php b/phpBB/install/database_update.php index 019469b061..ce0e9a6480 100644 --- a/phpBB/install/database_update.php +++ b/phpBB/install/database_update.php @@ -1697,6 +1697,14 @@ function change_database_data(&$no_updates, $version) _add_modules($modules_to_install); + // update + $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)\' + WHERE module_class = \'ucp\' + AND module_basename = \'profile\' + AND module_mode = \'avatar\''; + _sql($sql, $errored, $error_ary); + // add Bing Bot $sql = 'SELECT group_id, group_colour FROM ' . GROUPS_TABLE . " |