Exemplo n.º 1
0
 /**
  * Get the full URL to the needed thumbnail
  *
  * @param numeric $pTopicId Topic ID of topic in question
  * @access public
  * @return Path to thumbnail, FALSE on failure
  */
 public function getTopicImageThumbUrl($pTopicId = NULL)
 {
     global $gBitSystem;
     $ret = FALSE;
     if (!@BitBase::verifyId($pTopicId) && $this->isValid()) {
         $pTopicId = $this->mTopicId;
     }
     if (@BitBase::verifyId($pTopicId)) {
         $ret = liberty_fetch_thumbnail_url(array('source_file' => BitArticleTopic::getTopicImageBaseUrl($pTopicId), 'default_image' => $gBitSystem->getConfig('articles_image_size', 'small')));
     }
     return $ret;
 }