From: Michael Date: Wed, 3 May 2023 21:14:35 +0000 (+0000) Subject: Changes after code review X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=bf4d19eed31e98ef6ce721d437b31d77d992e4de;p=friendica.git Changes after code review --- diff --git a/src/Model/Item.php b/src/Model/Item.php index 4b2a675d4c..6da214398b 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 81be56bb05..a06d51f7c0 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 *}}