changeset 832:bd1cfc7b52d2

Fixes.
author Matti Hamalainen <ccr@tnsp.org>
date Tue, 25 Nov 2014 14:11:20 +0200
parents 40546d6f9254
children f03c4e9aad29
files faptool.php
diffstat 1 files changed, 5 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/faptool.php	Tue Nov 25 13:54:27 2014 +0200
+++ b/faptool.php	Tue Nov 25 14:11:20 2014 +0200
@@ -33,7 +33,7 @@
   {
     stMakeDir(stMakePath(FALSE, FALSE, array($setEntryPath, $compo["cpath"])), $setEntryPathPerms);
     stMakeDir(stMakePath(FALSE, FALSE, array($setPreviewPath, $compo["cpath"])), $setPrevPathPerms);
-    stMakeDir(stMakePath(FALSE, FALSE, array($setPreviewPath, $compo["cpath"], $setThumbDir), $setPrevPathPerms));
+    stMakeDir(stMakePath(FALSE, FALSE, array($setPreviewPath, $compo["cpath"], $setThumbDir)), $setPrevPathPerms);
   }
 }
 
@@ -72,11 +72,12 @@
 $setPreviewPath = stGetSetting("previewPath");
 $setPreviewURL = stGetSetting("previewURL");
 $setThumbDir = stGetSetting("thumbnailSubDir");
-$setEntryPathPerms = stGetSetting("previewPathPerms", 0711);
-$setPrevPathPerms = stGetSetting("previewPathPerms", 0711);
+$setEntryPathPerms = stGetSetting("entryPathPerms");
+$setPrevPathPerms = stGetSetting("previewPathPerms");
 
 if ($setEntryPath === FALSE || $setPreviewPath === FALSE ||
-    $setPreviewURL === FALSE || $setThumbDir === FALSE)
+    $setPreviewURL === FALSE || $setThumbDir === FALSE ||
+    $setEntryPathPerms === FALSE || $setPrevPathPerms === FALSE)
 {
   die("Some required settings not defined in mconfig.inc.php!\n");
 }