From c7c61e49905c7d8ef998a87bd9559f0584345b74 Mon Sep 17 00:00:00 2001 From: Scott Piccotti Date: Tue, 13 May 2014 14:47:27 -0400 Subject: [PATCH] "GridFieldBulkImageUpload" is deprecated, use "GridFieldBulkUpload" class instead. --- code/PhotoGalleryPage.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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'));