summaryrefslogtreecommitdiff
path: root/src/application/actions/_default
diff options
context:
space:
mode:
Diffstat (limited to 'src/application/actions/_default')
-rw-r--r--src/application/actions/_default/get.php10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/application/actions/_default/get.php b/src/application/actions/_default/get.php
index cd0c21c..616589f 100644
--- a/src/application/actions/_default/get.php
+++ b/src/application/actions/_default/get.php
@@ -1,11 +1,7 @@
<?php
use mystic\forum\orm\Topic;
-use mystic\forum\utils\RequestUtils;
-_view("template_start");
-_view("template_navigation_start");
-_view("template_navigation", ["user" => RequestUtils::getAuthorizedUser($db)]);
-_view("template_navigation_end");
-_view("view_topics", ["topics" => $db->fetchCustom(Topic::class, "ORDER BY creation_date DESC")]);
-_view("template_end", [...getThemeAndLangInfo()]);
+render("view_topics.twig", [
+ "topics" => $db->fetchCustom(Topic::class, "ORDER BY creation_date DESC"),
+]);