From fe0f414dc0211a4014581dc03fcfd514ed7ed02d Mon Sep 17 00:00:00 2001
From: Jonas Kohl
Date: Thu, 17 Oct 2024 10:56:01 +0200
Subject: Transition templating to Twig

---
 src/application/actions/deletetopic/post.php | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

(limited to 'src/application/actions/deletetopic/post.php')

diff --git a/src/application/actions/deletetopic/post.php b/src/application/actions/deletetopic/post.php
index e67cadf..8683c0f 100644
--- a/src/application/actions/deletetopic/post.php
+++ b/src/application/actions/deletetopic/post.php
@@ -55,13 +55,8 @@ if ($confirm !== null) {
 
     header("Location: .");
 } else {
-    _view("template_start", ["_title" => "Delete topic"]);
-    _view("template_navigation_start");
-    _view("template_navigation", ["user" => RequestUtils::getAuthorizedUser($db)]);
-    _view("template_navigation_end");
-    _view("form_delete_topic_confirm", [
+    render("delete_topic.twig", [
         "topic" => $topic,
         "topicAuthor" => $topicAuthor,
     ]);
-    _view("template_end", [...getThemeAndLangInfo()]);
 }
-- 
cgit v1.2.3