Пример #1
0
 protected function getNewRouteInfo()
 {
     // go to home page if path is exactly like prefix
     if (count($this->matches) == 1 and empty($this->queryParameters)) {
         $blogHomeChannelId = vB_Api::instance('blog')->getBlogChannel();
         $blogHomeChannel = vB_Library::instance('content_channel')->getBareContent($blogHomeChannelId);
         $blogHomeChannel = $blogHomeChannel[$blogHomeChannelId];
         return $blogHomeChannel['routeid'];
     }
     $this->oldcontenttypeid = vB_Api_ContentType::OLDTYPE_BLOGCHANNEL;
     return parent::getNewRouteInfo();
 }
Пример #2
0
 protected function getNewRouteInfo()
 {
     $this->oldcontenttypeid = vB_Api_ContentType::OLDTYPE_BLOGSTARTER;
     return parent::getNewRouteInfo();
 }
Пример #3
0
 protected function getNewRouteInfo()
 {
     $this->oldcontenttypeid = vB_Types::instance()->getContentTypeID(array('package' => 'vBForum', 'class' => 'Poll'));
     parent::getNewRouteInfo();
 }