blob: 4dd41af4bb12a1a1f5f9f88f65845d9b3a7bf40a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
diff --git a/plugins/cache_starred_images/init.php b/plugins/cache_starred_images/init.php
index 208eafde9..05b5a1a93 100755
--- a/plugins/cache_starred_images/init.php
+++ b/plugins/cache_starred_images/init.php
@@ -24,11 +24,8 @@ class Cache_Starred_Images extends Plugin {
$this->cache = DiskCache::instance("starred-images");
$this->cache_status = DiskCache::instance("starred-images.status-files");
- if ($this->cache->make_dir())
- chmod($this->cache->get_dir(), 0777);
-
- if ($this->cache_status->make_dir())
- chmod($this->cache_status->get_dir(), 0777);
+ $this->cache->make_dir();
+ $this->cache_status->make_dir();
if (!$this->cache->exists(".no-auto-expiry"))
$this->cache->put(".no-auto-expiry", "");
|