Summary:
Do not create modulename/id/ folders unless required in Uploads folder
Detailed Description:
Hi there,
Appears the module seems to generate a gallery folder in the uploads folder for
each item ID even though there are no files(s) or Gallery associated with that
module to that directory. For example, If a field definition (select file
looking for /uploads/images/banners) is not looking at that specific directory,
it still generated.
I modified the code on action.default.php lines 599 to 604 to the following:
// Only create directories if gallery exists...
if ($mod->GetPreference('has_gallery')) {
$onerow->file_location = generator_tools::file_location($this, $row);
$item_gallery = new generator_item_gallery($mod, $row["item_id"]);
$images = $item_gallery->load_files();
$onerow->images = $images;
}
I am not 100% sure if this is correct or if it could have some implications on
other custom modules that use the self creating directory with custom field
definitions.
Hope that makes sense?
Cheers