/** * 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; }
/** * 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; }