/** * Return content URL * * @param string $hash file hash * @param array $options options * @return string **/ public function getContentUrl($hash, $options = array()) { if (($file = $this->file($hash)) == false || !$file['url'] || $file['url'] == 1) { $path = $this->decode($hash); return $this->fs->getUrl($path); } return $file['url']; }