Mercurial > hg > fapweb
changeset 927:9a440921bbc2
Preview directory creation stuff.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Thu, 27 Nov 2014 18:03:43 +0200 |
parents | 3bead6333500 |
children | 980f15768103 |
files | faptool.php |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/faptool.php Thu Nov 27 17:57:38 2014 +0200 +++ b/faptool.php Thu Nov 27 18:03:43 2014 +0200 @@ -312,11 +312,12 @@ echo "Checking for missing directories ...\n"; stMakeDir($setEntryPath, $setEntryPathPerms); stMakeDir($setPreviewPath, $setPrevPathPerms); - stMakeDir(stMakePath(FALSE, FALSE, array($setPreviewPath, $setThumbDir)), $setPrevPathPerms); foreach (stExecSQL("SELECT * FROM compos WHERE cpath <> '' AND cpath IS NOT NULL") as $compo) { 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); } }