Skip to content

Commit

Permalink
[K6.3] Add comment just in case
Browse files Browse the repository at this point in the history
  • Loading branch information
xillibit committed Nov 2, 2024
1 parent c796e21 commit 9974344
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/libraries/kunena/src/BBCode/KunenaBBCode.php
Original file line number Diff line number Diff line change
Expand Up @@ -2703,7 +2703,8 @@ public function DoImage($bbcode, $action, $name, $default, $params, $content)
->set('alt', \count($matches) > 0 ? $altText : 0)
->set('canLink', $bbcode->autoLink_disable == 0);

if (Factory::getApplication()->getIdentity()->id == 0 && $this->config->showImgForGuest == 0 && !preg_match('@media\/kunena\/emoticons@', $fileurl)) {
// When image is set to don't show to guest, it should display the smilies
if (Factory::getApplication()->getIdentity()->id == 0 && $this->config->showImgForGuest == 0 && !preg_match('@media\/kunena\/emoticons@', $fileurl)) {
// Hide between content from non registered users.
return (string) $layout->set('title', Text::_('COM_KUNENA_SHOWIMGFORGUEST_HIDEIMG'))->setLayout('unauthorised');
}
Expand Down

0 comments on commit 9974344

Please sign in to comment.