Give ourselves write permission to dirs we want to delete the contents of.
authorJonas Häggqvist <rasher@rasher.dk>
Wed, 18 Mar 2009 01:35:51 +0000 (18 02:35 +0100)
committerJonas Häggqvist <rasher@rasher.dk>
Wed, 18 Mar 2009 01:35:51 +0000 (18 02:35 +0100)
private/themesite.class.php

index d2319f4..7628ce2 100644 (file)
@@ -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 {