protected function getNewRouteInfo() { $param =& $this->queryParameters; if (isset($param['p']) and $oldid = intval($param['p']) or isset($param['postid']) and $oldid = intval($param['postid'])) { $node = vB::getDbAssertor()->getRow('vBForum:fetchLegacyPostIds', array('oldids' => $oldid, 'postContentTypeId' => vB_Types::instance()->getContentTypeID('vBForum_Post'))); if (empty($node)) { throw new vB_Exception_404('invalid_page'); } $this->arguments['nodeid'] = $node['starter']; $this->arguments['innerPost'] = $node['nodeid']; return $node['routeid']; } $this->oldcontenttypeid = vB_Types::instance()->getContentTypeID(array('package' => 'vBForum', 'class' => 'Thread')); return parent::getNewRouteInfo(); }
protected function getNewRouteInfo() { $this->oldcontenttypeid = vB_Types::instance()->getContentTypeID(array('package' => 'vBForum', 'class' => 'Forum')); return parent::getNewRouteInfo(); }