diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..85e7c1d --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/.idea/ diff --git a/event/listener.php b/event/listener.php index 230d328..cc39a52 100644 --- a/event/listener.php +++ b/event/listener.php @@ -237,6 +237,12 @@ public function core_viewtopic_modify_page_title($event) $related_result = true; } } + if (!isset($this->user->lang['RELATED_TOPICS'])){ + $this->user->lang['RELATED_TOPICS'] = 'Related Topics'; + if ($this->config['default_lang'] == 'de'){ + $this->user->lang['RELATED_TOPICS'] = 'Ähnliche Beiträge'; + } + } $this->db->sql_freeresult($result); }