Skip to content

Commit

Permalink
wrong function name
Browse files Browse the repository at this point in the history
  • Loading branch information
live627 committed Mar 2, 2025
1 parent d739047 commit 78a6a91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Themes/default/Post.template.php
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ function template_main()

if (!empty(Config::$modSettings['attachmentShowImages']))
{
if (str_begins_with($attachment['mime_type'], 'image'))
if (str_starts_with($attachment['mime_type'], 'image'))
$src = Config::$scripturl . '?action=dlattach;attach=' . (!empty($attachment['thumb']) ? $attachment['thumb'] : $attachment['attachID']) . ';preview;image';
else
$src = Theme::$current->settings['images_url'] . '/generic_attach.png';
Expand Down

0 comments on commit 78a6a91

Please sign in to comment.