Esempio n. 1
0
 /**
  * Display similar topics
  *
  * @access public
  * @param \phpbb\event\data $event The event object
  */
 public function display_similar_topics($event)
 {
     // Return early if similar topics is disabled
     if (!$this->similar_topics->is_available()) {
         return;
     }
     $this->similar_topics->display_similar_topics($event['topic_data']);
 }
Esempio n. 2
0
 /**
  * Display similar topics
  *
  * @param object $event The event object
  * @return null
  * @access public
  */
 public function display_similar_topics($event)
 {
     // Return early if no reason to display similar topics
     if (!$this->similar_topics->is_available() || !$this->similar_topics->forum_available($event['forum_id'])) {
         return;
     }
     $this->similar_topics->display_similar_topics($event['topic_data']);
 }