From 006fef7feec456cfac80b77286d37324427724ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Helmut=20Schottm=C3=BCller?= Date: Mon, 28 Nov 2022 12:54:23 +0100 Subject: [PATCH] Added default template variables to prevent crashes when using mod_tag_listbycategory --- modules/ModuleTagListByCategory.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/ModuleTagListByCategory.php b/modules/ModuleTagListByCategory.php index 21f7361..b17223f 100644 --- a/modules/ModuleTagListByCategory.php +++ b/modules/ModuleTagListByCategory.php @@ -48,6 +48,11 @@ public function generate() */ protected function compile() { + $this->loadLanguageFile('tl_module'); + $this->Template->news = array(); + $this->Template->events = array(); + $this->Template->other_pages = array(); + $this->Template->pages = array(); if (strlen(\TagHelper::decode(\Input::get('tag'))) && count($this->sourcetables) > 0) { $tagids = array();