All pastes #625462 Raw Edit

Someone

public diff v1 · immutable
·published 2007-07-18 23:11 UTC
rendered paste body
--- html/inc/cache.inc  (revision 13177)+++ html/inc/cache.inc  (working copy)@@ -11,11 +11,15 @@ // mechanism for caching commonly-accessed pages function make_cache_dirs() {-    if (!@filemtime("../cache")) mkdir("../cache", 0770);+    if (!@filemtime("../cache")) {+        mkdir("../cache", 0770);+        chmod("../cache", 0770);+    }     for ($i=0;$i<256;$i++) {         $j=sprintf("%02x",$i);         if (!@filemtime("../cache/$j")) {             mkdir("../cache/$j", 0770);+            chmod("../cache/$j", 0770);         }     } }