Example #1
0
 /**
  * Updates the link when changing action to also add section id in case that is not the default one
  * @param string $action
  * @param array $params
  * @return bool
  */
 public function goToAction($action, $params = [])
 {
     if ($this->sectionId && 'get' == Config::value('FORUM_SECTION_ID_SOURCE')) {
         $params[Config::value('FORUM_SECTION_ID_KEY')] = $this->sectionId;
     }
     return parent::goToAction($action, $params);
 }