aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/cache.php
diff options
context:
space:
mode:
authormarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-06-10 11:21:16 +0000
committermarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-06-10 11:21:16 +0000
commitddd899baed4b54ece6a59d4a2c83b7dcc8559af0 (patch)
treee93dc61e8bc6df37f89ebd9128708b2245abce77 /engine/lib/cache.php
parent4d37741c63325b382bee1d7c43e176ac1e92674e (diff)
downloadelgg-ddd899baed4b54ece6a59d4a2c83b7dcc8559af0.tar.gz
elgg-ddd899baed4b54ece6a59d4a2c83b7dcc8559af0.tar.bz2
File cache attempts to create directory if it is not present.
git-svn-id: https://code.elgg.org/elgg/trunk@3324 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/cache.php')
-rw-r--r--engine/lib/cache.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/engine/lib/cache.php b/engine/lib/cache.php
index 47319e708..70a8d49f2 100644
--- a/engine/lib/cache.php
+++ b/engine/lib/cache.php
@@ -313,6 +313,7 @@
// Create full path
$path = $this->get_variable("cache_path") . $matrix;
+ mkdir($path, 0700, true);
// if (!mkdir($path, 0700, true)) throw new IOException("Could not make $path");