예제 #1
0
파일: File.php 프로젝트: schwarer2006/wikia
 /**
  * Get the URL of the thumbnail directory, or a particular file if $suffix is specified
  *
  * @param $suffix bool|string if not false, the name of a thumbnail file
  *
  * @return path
  */
 function getThumbUrl($suffix = false)
 {
     $this->assertRepoDefined();
     $path = $this->repo->getZoneUrl('thumb') . '/' . $this->getUrlRel();
     if ($suffix !== false) {
         $path .= '/' . rawurlencode($suffix);
     }
     return $path;
 }
예제 #2
0
파일: File.php 프로젝트: Tjorriemorrie/app
 /**
  * Get the URL of the thumbnail directory, or a particular file if $suffix is specified
  *
  * @param $suffix bool|string if not false, the name of a thumbnail file
  *
  * @return path
  */
 function getThumbUrl($suffix = false)
 {
     $this->assertRepoDefined();
     $path = $this->repo->getZoneUrl('thumb') . '/' . $this->getUrlRel();
     $path = wfReplaceImageServer($path, $this->getTimestamp());
     // Wikia change (BAC-1206)
     if ($suffix !== false) {
         $path .= '/' . rawurlencode($suffix);
     }
     return $path;
 }