[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

This commit is contained in:
2022-01-22 19:16:35 +00:00
parent 6b1c6f603e
commit e4a3438d55
5 changed files with 25 additions and 12 deletions

View File

@@ -16,9 +16,9 @@
{% if notes is defined %}
<header class="feed-header">
{% if page_title is defined %}
<h1 class="heading-no-margin">{{ page_title | trans }}</h1>
<span class="section-title">{{ page_title | trans }}</span>
{% else %}
<h3 class="heading-no-margin">{{ 'Notes' | trans }}</h3>
<span class="section-title">{{ 'Notes' | trans }}</span>
{% endif %}
<nav class="feed-actions">
<details class="feed-actions-details">
@@ -50,6 +50,10 @@
{% endblock current_note %}
{% endfor %}
</section>
{% else %}
<section class="feed h-feed hfeed notes" tabindex="0" role="feed">
<span>{% trans %}No notes here...{% endtrans %}</span>
</section>
{% endif %}
{% endif %}
{% endblock body %}