aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/ucp/ucp_groups.php
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2015-12-01 15:15:43 +0100
committerMarc Alexander <admin@m-a-styles.de>2016-01-01 17:26:14 +0100
commitf3c2c497d8443d7cb77eaaf9c8031db1cb3434d9 (patch)
treeabcb6da16087934d05a33d4ecd28a24e056f2918 /phpBB/includes/ucp/ucp_groups.php
parent805b08460792b330a8c08754b769b8e818fb0fda (diff)
downloadforums-f3c2c497d8443d7cb77eaaf9c8031db1cb3434d9.tar
forums-f3c2c497d8443d7cb77eaaf9c8031db1cb3434d9.tar.gz
forums-f3c2c497d8443d7cb77eaaf9c8031db1cb3434d9.tar.bz2
forums-f3c2c497d8443d7cb77eaaf9c8031db1cb3434d9.tar.xz
forums-f3c2c497d8443d7cb77eaaf9c8031db1cb3434d9.zip
[ticket/14272] Assign min and max values for avatar driver settings
PHPBB3-14272
Diffstat (limited to 'phpBB/includes/ucp/ucp_groups.php')
-rw-r--r--phpBB/includes/ucp/ucp_groups.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/phpBB/includes/ucp/ucp_groups.php b/phpBB/includes/ucp/ucp_groups.php
index b2b1da1f5a..86a8226d5b 100644
--- a/phpBB/includes/ucp/ucp_groups.php
+++ b/phpBB/includes/ucp/ucp_groups.php
@@ -651,6 +651,14 @@ class ucp_groups
$avatars_enabled = false;
$selected_driver = $phpbb_avatar_manager->clean_driver_name($request->variable('avatar_driver', $avatar_data['avatar_type']));
+ // Assign min and max values before generating avatar driver html
+ $template->assign_vars(array(
+ 'AVATAR_MIN_WIDTH' => $config['avatar_min_width'],
+ 'AVATAR_MAX_WIDTH' => $config['avatar_max_width'],
+ 'AVATAR_MIN_HEIGHT' => $config['avatar_min_height'],
+ 'AVATAR_MAX_HEIGHT' => $config['avatar_max_height'],
+ ));
+
foreach ($avatar_drivers as $current_driver)
{
$driver = $phpbb_avatar_manager->get_driver($current_driver);