diff --git a/phpBB/config.php b/phpBB/config.php index e69de29bb2..51ddc64c9d 100644 --- a/phpBB/config.php +++ b/phpBB/config.php @@ -0,0 +1,28 @@ + diff --git a/phpBB/includes/usercp_avatar.php b/phpBB/includes/usercp_avatar.php index 3e16879099..740d60db95 100644 --- a/phpBB/includes/usercp_avatar.php +++ b/phpBB/includes/usercp_avatar.php @@ -64,6 +64,7 @@ function user_avatar_delete($avatar_type, $avatar_file) function user_avatar_gallery($mode, &$error, &$error_msg, $avatar_filename) { + global $board_config; if ( file_exists($board_config['avatar_gallery_path'] . '/' . $avatar_filename) && ($mode == 'editprofile') ) { $return = ", user_avatar = '" . str_replace("\'", "''", $avatar_filename) . "', user_avatar_type = " . USER_AVATAR_GALLERY;