Skip to content

Commit ea3403d

Browse files
committed
replace fetch with render
1 parent 7bc5c3f commit ea3403d

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

files/lib/system/bbcode/FaqBBCode.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public function getParsedTag(array $openingTag, $content, array $closingTag, BBC
3535
$collapse = true;
3636
}
3737

38-
return WCF::getTPL()->fetch('faqBBCode', 'wcf', [
38+
return WCF::getTPL()->render('wcf', 'faqBBCode', [
3939
'question' => $question,
4040
'collapseQuestion' => $collapse,
4141
], true);

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('shared_faqQuestionSearchResult', 'wcf', [
32+
'template' => WCF::getTPL()->render('wcf', 'shared_faqQuestionSearchResult', [
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('shared_faqQuestionSearchDialog', 'wcf'),
20+
'template' => WCF::getTPL()->render('wcf', 'shared_faqQuestionSearchDialog', []),
2121
]);
2222
}
2323
}

0 commit comments

Comments
 (0)