diff --git a/fp-plugins/gallerycaptions/tpls/admin.plugin.gallerycaptions.tpl b/fp-plugins/gallerycaptions/tpls/admin.plugin.gallerycaptions.tpl index f9bf9d8..8a2b1a7 100644 --- a/fp-plugins/gallerycaptions/tpls/admin.plugin.gallerycaptions.tpl +++ b/fp-plugins/gallerycaptions/tpls/admin.plugin.gallerycaptions.tpl @@ -1,13 +1,13 @@

{$plang.head}

-{include file=shared:errorlist.tpl} +{include file="shared:errorlist.tpl"} -{html_form class=option-set} +{html_form class="option-set"}

- {$plang.label_selectgallery} + {$plang.label_selectgallery} @@ -17,14 +17,14 @@ {if !empty($currentgallery)}

{$plang.label_editcaptionsforgallery} {$currentgallery}

- {html_form class=option-set} + {html_form class="option-set"}

{if count($currentgalleryimages) == 0} {$plang.label_noimagesingallery} {else} - {foreach from="$currentgalleryimages" item="currentfilename"} + {foreach from=$currentgalleryimages item=currentfilename}
diff --git a/fp-plugins/mediamanager/panels/panel.mediamanager.file.php b/fp-plugins/mediamanager/panels/panel.mediamanager.file.php index ac0e429..03e7ba0 100644 --- a/fp-plugins/mediamanager/panels/panel.mediamanager.file.php +++ b/fp-plugins/mediamanager/panels/panel.mediamanager.file.php @@ -240,6 +240,11 @@ class admin_uploader_mediamanager extends AdminPanelAction { } $newgallery = str_replace("/", "", $newgallery); $newgallery = str_replace(".", "", $newgallery); + // create images folder if not existant + if (!file_exists(ABS_PATH . IMAGES_DIR)) { + mkdir(ABS_PATH . IMAGES_DIR); + } + // now create gallery folder if (mkdir(ABS_PATH . IMAGES_DIR . $newgallery)) { $this->smarty->assign('success', 3); } else {