コード例 #1
0
 public function getBucket()
 {
     $wikiDbName = $this->repo->getDBName();
     $wikiId = WikiFactory::DBtoID($wikiDbName);
     $wikiUploadPath = WikiFactory::getVarValueByName('wgUploadPath', $wikiId);
     return VignetteRequest::parseBucket($wikiUploadPath);
 }
コード例 #2
0
 /**
  * @return string  A path to file's bucket
  */
 public function getBucket()
 {
     return VignetteRequest::parseBucket($this->getUploadDir());
 }
コード例 #3
0
 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;
 }
コード例 #4
0
ファイル: File.php プロジェクト: Tjorriemorrie/app
 public function getBucket()
 {
     global $wgUploadPath;
     return VignetteRequest::parseBucket($wgUploadPath);
 }