Пример #1
0
 /**
  * Work out the path to the image for this article
  * @param $pTopicId id of the article we need the image path for
  * @param $pBasePathOnly bool TRUE / FALSE - specify whether you want full path or just base path
  * @return path on success, FALSE on failure
  * @access public
  **/
 public function getTopicImageBaseUrl($pTopicId = NULL)
 {
     $ret = FALSE;
     if (!@BitBase::verifyId($pTopicId) && $this->isValid()) {
         $pTopicId = $this->mTopicId;
     }
     if (@BitBase::verifyId($pTopicId)) {
         $ret = LibertyMime::getStorageUrl('topics/' . $pTopicId);
     }
     return $ret;
 }