diff --git a/event/listener.php b/event/listener.php index 230d328..dff5075 100644 --- a/event/listener.php +++ b/event/listener.php @@ -101,7 +101,7 @@ public function __construct(\phpbb\config\config $config, \phpbb\auth\auth $auth $this->pagination = $phpbb_container->get('pagination'); $this->phpbb_root_path = $phpbb_root_path; $this->php_ext = $php_ext; - + $this->posts_per_page = $this->config['posts_per_page']; // better to always check, since it's fast @@ -126,6 +126,8 @@ public function core_viewtopic_modify_page_title($event) { global $topic_tracking_info; + $this->user->add_lang_ext("phpbbseo/related", "lang"); + $topic_data = $event['topic_data']; $forum_id = $event['forum_id']; diff --git a/language/de/lang.php b/language/de/lang.php new file mode 100644 index 0000000..584817e --- /dev/null +++ b/language/de/lang.php @@ -0,0 +1,21 @@ + 'Ähnliche Themen', +)); diff --git a/language/en/lang.php b/language/en/lang.php new file mode 100644 index 0000000..c28559b --- /dev/null +++ b/language/en/lang.php @@ -0,0 +1,21 @@ + 'Related Topics', +));