public function getBucket() { $wikiDbName = $this->repo->getDBName(); $wikiId = WikiFactory::DBtoID($wikiDbName); $wikiUploadPath = WikiFactory::getVarValueByName('wgUploadPath', $wikiId); return VignetteRequest::parseBucket($wikiUploadPath); }
/** * @return string A path to file's bucket */ public function getBucket() { return VignetteRequest::parseBucket($this->getUploadDir()); }
private static function vignetteCustomUrl($width, $relativePath, $timestamp) { global $wgBlogAvatarPath; $url = $relativePath; if (strpos($relativePath, 'http://') === false) { $bucket = VignetteRequest::parseBucket($wgBlogAvatarPath); $relativePath = ltrim($relativePath, '/'); $url = self::buildVignetteUrl($width, $bucket, $relativePath, $timestamp); } return $url; }
public function getBucket() { global $wgUploadPath; return VignetteRequest::parseBucket($wgUploadPath); }