From 9a4f7be9a1b8b9e6a671fff4cf54d037b15f6a0c Mon Sep 17 00:00:00 2001 From: Saophalkun Ponlu Date: Thu, 29 Apr 2010 04:10:05 +0000 Subject: [PATCH] ENHANCEMENT: use FileSystem class to create cache directory to unsure the right permissions are set git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.4@103730 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- tasks/RebuildStaticCacheTask.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/RebuildStaticCacheTask.php b/tasks/RebuildStaticCacheTask.php index 486ac729..99c044d0 100644 --- a/tasks/RebuildStaticCacheTask.php +++ b/tasks/RebuildStaticCacheTask.php @@ -47,7 +47,7 @@ class RebuildStaticCacheTask extends Controller { $cacheBaseDir = $page->getDestDir(); if(!file_exists($cacheBaseDir)) { - mkdir($cacheBaseDir); + Filesystem::makeFolder($cacheBaseDir); } if (file_exists($cacheBaseDir.'/lock') && !isset($_REQUEST['force'])) die("There already appears to be a publishing queue running. You can skip warning this by adding ?/&force to the URL.");