$this->getFilesData();
$cacheKey = md5($page . '||' . $format . '$$' . $quality . '//' . $resolution . '""' . ($withText ? '1' : '0') . '---' . ($withGraphics ? '1' : '0') . '%%' . $version);
if ($force || !isset($this->filesdata[$cacheKey]) || !$this->filesdata[$cacheKey]) {
- $res=$this->_getFile($page, $format, $resolution, $quality, $withText, $withGraphics, $version, $force);
+ $res = $this->_getFile($page, $format, $resolution, $quality, $withText, $withGraphics, $version, $force);
$this->filesdata[$cacheKey] = $res;
}
return $this->filesdata[$cacheKey];
$q = ($format === 'jpg' && $quality != 85) ? $quality : '';
$prefix = $withText ? 't' : 'h';
if ($resolution === 'thumb') {
- $file = $dir . 'p' . $page . '.' . $format;
+ $file = $dir . 'p' . $page . $q . '.' . $format;
} else {
$file = $dir . $prefix . $page . '-' . $resolution . $q . '.' . $format;
}