From 6cd8109fa03e0d82803491e965096e325e48312c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jonas=20H=C3=A4ggqvist?= Date: Wed, 18 Mar 2009 02:35:51 +0100 Subject: [PATCH] Give ourselves write permission to dirs we want to delete the contents of. --- private/themesite.class.php | 1 + 1 file changed, 1 insertion(+) diff --git a/private/themesite.class.php b/private/themesite.class.php index d2319f4..7628ce2 100644 --- a/private/themesite.class.php +++ b/private/themesite.class.php @@ -506,6 +506,7 @@ END; if ($entry == '.' || $entry == '..') continue; $path = sprintf("%s/%s", $dir->path, $entry); if (is_dir($path)) { + chmod($path, 0700); // To make sure we're allowed to delete files $this->rmdir_recursive($path); } else { -- 2.11.4.GIT