summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--init.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/init.php b/init.php
index 1fff42d..d8b42ab 100644
--- a/init.php
+++ b/init.php
@@ -92,7 +92,7 @@ class Cache_S3 extends Plugin implements Cache_Adapter {
}
public function get_full_path(string $filename): string {
- return 's3://' . Config::get(self::CACHE_S3_BUCKET) . '/' . $this->dir . '/' . basename(clean($filename));
+ return 's3://' . Config::get(self::CACHE_S3_BUCKET) . '/' . ($this->dir ? $this->dir . '/' : '') . basename(clean($filename));
}
public function get_mime_type(string $filename) {