Skip to content

Commit

Permalink
Fix the flag sizes display
Browse files Browse the repository at this point in the history
  • Loading branch information
rmcgirr83 committed Aug 10, 2024
1 parent 3bde9c4 commit 648515a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions event/listener.php
Original file line number Diff line number Diff line change
Expand Up @@ -552,7 +552,7 @@ public function memberlist_prepare_profile_data($event)

if (!empty($flag_id) && $this->nationalflags->display_flags_on_forum($this->config['flags_memberlist']))
{
$template_vars['USERNAME_FULL'] .= ' ' . $this->nationalflags->get_user_flag($flag_id, 16);
$template_vars['USERNAME_FULL'] .= ' ' . $this->nationalflags->get_user_flag($flag_id, 12);
}

$event['template_data'] = $template_vars;
Expand All @@ -571,7 +571,7 @@ public function display_forums_modify_template_vars($event)

if (!empty($flag_id) && $this->nationalflags->display_flags_on_forum($this->config['flags_forumrow']))
{
$template_vars['LAST_POSTER_FULL'] .= ' ' . $this->nationalflags->get_user_flag($flag_id, 16);
$template_vars['LAST_POSTER_FULL'] .= ' ' . $this->nationalflags->get_user_flag($flag_id, 12);
}

$event['forum_row'] = $template_vars;
Expand Down Expand Up @@ -602,11 +602,11 @@ public function viewforum_modify_topicrow($event)

if (!empty($topic_starter) && $this->nationalflags->display_flags_on_forum($this->config['flags_forumrow']))
{
$template_vars['TOPIC_AUTHOR_FULL'] .= ' ' . $this->nationalflags->get_user_flag($topic_starter, 16);
$template_vars['TOPIC_AUTHOR_FULL'] .= ' ' . $this->nationalflags->get_user_flag($topic_starter, 12);
}
if (!empty($last_post_author) && $this->nationalflags->display_flags_on_forum($this->config['flags_forumrow']))
{
$template_vars['LAST_POST_AUTHOR_FULL'] .= ' ' . $this->nationalflags->get_user_flag($last_post_author, 16);
$template_vars['LAST_POST_AUTHOR_FULL'] .= ' ' . $this->nationalflags->get_user_flag($last_post_author, 12);
}

$event['topic_row'] = $template_vars;
Expand Down

0 comments on commit 648515a

Please sign in to comment.