diff --git a/code/PhotoGalleryPage.php b/code/PhotoGalleryPage.php index 4398845..96bd8ee 100644 --- a/code/PhotoGalleryPage.php +++ b/code/PhotoGalleryPage.php @@ -25,9 +25,9 @@ public function getCMSFields() { } $gridFieldConfig = GridFieldConfig_RecordEditor::create(); - $gridFieldConfig->addComponent(new GridFieldBulkImageUpload()); + $gridFieldConfig->addComponent(new GridFieldBulkUpload()); $gridFieldConfig->addComponent(new GridFieldGalleryTheme('Image')); - $gridFieldConfig->getComponentByType('GridFieldBulkImageUpload')->setConfig('folderName', "Managed/PhotoGalleries/".$this->ID."-".$this->URLSegment); + $gridFieldConfig->getComponentByType('GridFieldBulkUpload')->setConfig('folderName', "Managed/PhotoGalleries/".$this->ID."-".$this->URLSegment); $gridFieldConfig->removeComponentsByType('GridFieldPaginator'); $gridFieldConfig->addComponent(new GridFieldSortableRows('SortOrder'));