Skip to content

Commit

Permalink
Added to use prefixPath to placeholder image
Browse files Browse the repository at this point in the history
  • Loading branch information
sadovojav committed Apr 9, 2019
1 parent 6eb00e4 commit 62f070d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Thumbnail.php
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,8 @@ private function findPlaceholderInCache($string)
$cacheUrl = str_replace('\\', '/', preg_replace('/^@[a-z]+/', '', $this->cachePath) . $cacheFileDir . '/'
. $cacheFileName . $cacheFileExt);

$cacheUrl = !is_null($this->prefixPath) ? $this->prefixPath . $cacheUrl : $cacheUrl;

if (file_exists($cacheFile)) {
if ($this->cacheExpire !== 0 && (time() - filemtime($cacheFile)) > $this->cacheExpire) {
unlink($cacheFile);
Expand Down

0 comments on commit 62f070d

Please sign in to comment.