From e4a3438d55c8ed204ba79cede459fe6adbc501f8 Mon Sep 17 00:00:00 2001 From: Eliseu Amaro Date: Sat, 22 Jan 2022 19:16:35 +0000 Subject: [PATCH] [CORE][I18n] Fixing 'file_get_contents(): Argument #1 () must be of type string, Symfony\Component\Finder\SplFileInfo given' error by using Symfony's Finder to iterate through existing files --- .../Collection/templates/collection/notes.html.twig | 8 ++++++-- composer.lock | 8 ++++---- plugins/Favourite/Controller/Favourite.php | 2 +- public/assets/default_theme/css/pages/feeds.css | 8 +++++++- src/Core/I18n/TransExtractor.php | 11 +++++++---- 5 files changed, 25 insertions(+), 12 deletions(-) diff --git a/components/Collection/templates/collection/notes.html.twig b/components/Collection/templates/collection/notes.html.twig index 21796807f8..cda2adcfb0 100644 --- a/components/Collection/templates/collection/notes.html.twig +++ b/components/Collection/templates/collection/notes.html.twig @@ -16,9 +16,9 @@ {% if notes is defined %}
{% if page_title is defined %} -

{{ page_title | trans }}

+ {{ page_title | trans }} {% else %} -

{{ 'Notes' | trans }}

+ {{ 'Notes' | trans }} {% endif %}