Skip to content

Commit

Permalink
fix(icon): use different icon size to check in icon remove
Browse files Browse the repository at this point in the history
  • Loading branch information
jeabakker committed Jan 7, 2021
1 parent 20e07d2 commit 8c42bf4
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions views/default/entity/edit/icon/remove.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
* @uses $vars['name'] name of the input/file (default: icon)
* @uses $vars['remove_name'] name of the remove icon toggle (default: $vars['name'] . '_remove')
* @uses $vars['show_remove'] show the remove icon option (default: true)
* @uses $vars['thumb_size'] the icon size to use as the thumb (default: medium)
*/

if (elgg_extract('show_remove', $vars, true) === false) {
Expand All @@ -21,9 +20,7 @@
}

$icon_type = elgg_extract('icon_type', $vars, 'icon');
$size = elgg_extract('thumb_size', $vars, 'medium');

if (!$entity->hasIcon($size, $icon_type)) {
if (!$entity->hasIcon('master', $icon_type)) {
// no icon uploaded
return;
}
Expand Down

0 comments on commit 8c42bf4

Please sign in to comment.