Skip to content

Commit

Permalink
Merge pull request #5 from scpi/master
Browse files Browse the repository at this point in the history
"GridFieldBulkImageUpload" is deprecated, use "GridFieldBulkUpload" clas...
  • Loading branch information
James Cocker committed May 13, 2014
2 parents 4614ff9 + c7c61e4 commit e036146
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions code/PhotoGalleryPage.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'));
Expand Down

0 comments on commit e036146

Please sign in to comment.