From bf4d19eed31e98ef6ce721d437b31d77d992e4de Mon Sep 17 00:00:00 2001 From: Michael Date: Wed, 3 May 2023 21:14:35 +0000 Subject: [PATCH] Changes after code review --- src/Model/Item.php | 6 +++--- view/templates/head.tpl | 6 +++--- view/theme/frio/templates/head.tpl | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/Model/Item.php b/src/Model/Item.php index 4b2a675d4..6da214398 100644 --- a/src/Model/Item.php +++ b/src/Model/Item.php @@ -3143,14 +3143,14 @@ class Item } if (!empty($shared_attachments)) { - $s = self::AddGallery($s, $shared_attachments, $item['uri-id']); + $s = self::addGallery($s, $shared_attachments, $item['uri-id']); $s = self::addVisualAttachments($shared_attachments, $shared_item, $s, true); $s = self::addLinkAttachment($shared_uri_id ?: $item['uri-id'], $shared_attachments, $body, $s, true, $quote_shared_links); $s = self::addNonVisualAttachments($shared_attachments, $item, $s, true); $body = BBCode::removeSharedData($body); } - $s = self::AddGallery($s, $attachments, $item['uri-id']); + $s = self::addGallery($s, $attachments, $item['uri-id']); $s = self::addVisualAttachments($attachments, $item, $s, false); $s = self::addLinkAttachment($item['uri-id'], $attachments, $body, $s, false, $shared_links); $s = self::addNonVisualAttachments($attachments, $item, $s, false); @@ -3208,7 +3208,7 @@ class Item * @param integer $uri_id * @return string */ - private static function AddGallery(string $s, array $attachments, int $uri_id): string + private static function addGallery(string $s, array $attachments, int $uri_id): string { foreach ($attachments['visual'] as $attachment) { if (empty($attachment['preview']) || ($attachment['type'] != Post\Media::IMAGE)) { diff --git a/view/templates/head.tpl b/view/templates/head.tpl index 81be56bb0..a06d51f7c 100644 --- a/view/templates/head.tpl +++ b/view/templates/head.tpl @@ -7,7 +7,7 @@ - + {{foreach $stylesheets as $stylesheetUrl => $media}} @@ -45,8 +45,8 @@ - - + + - - + + {{* Include the strings which are needed for some js functions (e.g. translation) They are loaded into the html so that js functions can use them *}}