public function getBucket()
 {
     $wikiDbName = $this->repo->getDBName();
     $wikiId = WikiFactory::DBtoID($wikiDbName);
     $wikiUploadPath = WikiFactory::getVarValueByName('wgUploadPath', $wikiId);
     return VignetteRequest::parseBucket($wikiUploadPath);
 }
Example #2
0
 /**
  * @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;
 }
Example #4
0
 public function getBucket()
 {
     global $wgUploadPath;
     return VignetteRequest::parseBucket($wgUploadPath);
 }