Skip to content

Commit 5f13dd3

Browse files
committed
feat(attachment): improved attachment error page
1 parent e7a88bd commit 5f13dd3

File tree

3 files changed

+19
-6
lines changed

3 files changed

+19
-6
lines changed

phpmyfaq/assets/templates/default/attachment.twig

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,22 @@
22

33
{% block content %}
44
{% if attachmentErrors %}
5-
<section>
6-
{% for item in attachmentErrors %}
7-
<li>{{ item }}</li>
8-
{% endfor %}
9-
</section>
5+
6+
<div class="row g-5">
7+
<div class="col justify-content-start">
8+
<h2 class="border-bottom">{{ 'msgReportABug' | translate }}</h2>
9+
</div>
10+
11+
<div class="col-12 mt-4">
12+
<p>
13+
{{ 'msgErrorOccurred' | translate }}
14+
</p>
15+
<ul>
16+
{% for item in attachmentErrors %}
17+
<li>{{ item }}</li>
18+
{% endfor %}
19+
</ul>
20+
</div>
21+
</div>
1022
{% endif %}
1123
{% endblock %}

phpmyfaq/attachment.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@
145145

146146
// Twig template variables
147147
$templateVars = [
148+
... $templateVars,
148149
'attachmentErrors' => $attachmentErrors,
149150
];
150151

phpmyfaq/translations/language_de.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -919,7 +919,7 @@
919919
$PMF_LANG['ad_record_active'] = "aktiviert";
920920

921921
// added 2.6.0-alpha - 2009-11-01 by Anatoliy Belsky
922-
$PMF_LANG['msgAttachmentInvalid'] = 'Der Anhang ist ungültig, bitte informieren Sie den Admin';
922+
$PMF_LANG['msgAttachmentInvalid'] = 'Der Anhang ist ungültig, bitte informieren Sie den Administrator.';
923923

924924
// added 2.6.0-alpha - 2009-11-02 by max
925925
$LANG_CONF['search.numberSearchTerms'] = ["input", "Anzahl der beliebtesten Suchbegriffe"];

0 commit comments

Comments
 (0)