Skip to content

Commit 9434b65

Browse files
committed
fix: corrected button and logic for answered questions
1 parent 5d70964 commit 9434b65

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

phpmyfaq/assets/templates/default/open-questions.twig

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@
1919
<td>
2020
<strong>{{ question.categoryName }}:</strong><br>{{ question.question }}
2121
</td>
22-
{% if isCloseQuestionEnabled %}
23-
<td>
24-
<a href="?action=faq&cat={{ question.categoryId }}&id={{ question.answerId }}">
22+
{% if isCloseQuestionEnabled and question.answerId > 0 %}
23+
<td class="text-end">
24+
<a class="btn btn-primary" href="?action=faq&cat={{ question.categoryId }}&id={{ question.answerId }}">
2525
{{ msg2answerFAQ }}
2626
</a>
2727
</td>

phpmyfaq/open-questions.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,3 +58,4 @@
5858
];
5959

6060
return $templateVars;
61+

phpmyfaq/translations/language_de.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1014,7 +1014,7 @@
10141014
// added v2.8.0-alpha - 2012-01-13 by Peter
10151015
$LANG_CONF['records.enableCloseQuestion'] = ['checkbox', "Offene Frage nach Beantwortung schließen?"];
10161016
$LANG_CONF['records.enableDeleteQuestion'] = ['checkbox', "Offene Frage nach Beantwortung löschen?"];
1017-
$PMF_LANG['msg2answerFAQ'] = "Answered";
1017+
$PMF_LANG['msg2answerFAQ'] = "Antwort";
10181018

10191019
// added v2.8.0-alpha - 2012-01-16 by Thorsten
10201020
$PMF_LANG['headerUserControlPanel'] = 'Persönlicher Bereich';

0 commit comments

Comments
 (0)