Esempio n. 1
0
 function lookupByMigratePost($pMigratePostId)
 {
     global $gBitDb;
     $ret = NULL;
     if (BitBase::verifyId($pMigratePostId)) {
         $path = $gBitDb->getOne("SELECT lcom.`thread_forward_sequence`  FROM `" . BIT_DB_PREFIX . "boards_posts` bp INNER JOIN `" . BIT_DB_PREFIX . "liberty_comments` lcom ON(bp.`comment_id`=lcom.`comment_id`) WHERE bp.`migrate_post_id`=?", array($pMigratePostId));
         if ($path) {
             $ret = boards_get_topic_comment($path);
         }
     }
     return $ret;
 }
Esempio n. 2
0
 function getTopicId()
 {
     return boards_get_topic_comment($this->getField('thread_forward_sequence'));
 }