Skip to content

Commit f393c9f

Browse files
committed
fix possible template bug
1 parent 6f0b909 commit f393c9f

File tree

7 files changed

+12
-4
lines changed

7 files changed

+12
-4
lines changed

files/lib/system/endpoint/controller/hanashi/questions/search/GetSearch.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public function __invoke(ServerRequestInterface $request, array $variables): Res
2929
$questionIDs = $this->getQuestionsIDs($parameters->query);
3030

3131
return new JsonResponse([
32-
'template' => WCF::getTPL()->fetch('faqQuestionSearchResult', 'wcf', [
32+
'template' => WCF::getTPL()->fetch('shared_faqQuestionSearchResult', 'wcf', [
3333
'questions' => $this->getQuestions($questionIDs),
3434
]),
3535
]);

files/lib/system/endpoint/controller/hanashi/questions/search/RenderSearch.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ final class RenderSearch implements IController
1717
public function __invoke(ServerRequestInterface $request, array $variables): ResponseInterface
1818
{
1919
return new JsonResponse([
20-
'template' => WCF::getTPL()->fetch('faqQuestionSearchDialog', 'wcf'),
20+
'template' => WCF::getTPL()->fetch('shared_faqQuestionSearchDialog', 'wcf'),
2121
]);
2222
}
2323
}

package.xml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
<packagename language="de">Simple FAQ</packagename>
77
<packagedescription>A simple and powerful FAQ for your WSC.</packagedescription>
88
<packagedescription language="de">Ein simples und leistungsstarkes FAQ für Ihr WSC.</packagedescription>
9-
<version>2.2.1</version>
10-
<date>2024-08-31</date>
9+
<version>2.2.1 dev 1</version>
10+
<date>2024-09-04</date>
1111
</packageinformation>
1212
<authorinformation>
1313
<author>Hanashi Development, Titus Kirch</author>
@@ -37,6 +37,8 @@
3737
<instruction type="database" run="standalone">acp/database/install_dev.tkirch.wsc.faq.php</instruction>
3838
</instructions>
3939
<instructions type="update" fromversion="2.2.0">
40+
<instruction type="file"/>
41+
<instruction type="template"/>
4042
<instruction type="templateListener"/>
4143
</instructions>
4244
<instructions type="update" fromversion="2.1.*">

templateListener.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@
77
<eventname>wysiwyg</eventname>
88
<templatecode><![CDATA[{include file='__faqWysiwygJavaScript'}]]></templatecode>
99
</templatelistener>
10+
<templatelistener name="faqWysiwygBeforeEditorJavaScriptAdmin">
11+
<environment>admin</environment>
12+
<templatename>shared_wysiwyg</templatename>
13+
<eventname>wysiwyg</eventname>
14+
<templatecode><![CDATA[{include file='shared_faqWysiwygJavaScript'}]]></templatecode>
15+
</templatelistener>
1016
<templatelistener name="searchAreaFaqSettings">
1117
<environment>user</environment>
1218
<templatename>pageHeaderSearch</templatename>
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)