mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
MINOR Tidied up ThumbnailStripField->getimages() formatting
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@65446 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
22a4079277
commit
0e727e458d
@ -41,10 +41,10 @@ class ThumbnailStripField extends FormField {
|
||||
function getimages() {
|
||||
$result = '';
|
||||
$folder = DataObject::get_by_id('Folder', (int) $_GET['folderID']);
|
||||
|
||||
|
||||
if(!$folder) return _t('ThumbnailStripField.NOTAFOLDER', 'This is not a folder');
|
||||
|
||||
$folderList = $folder->getDescendantIDList("Folder");
|
||||
|
||||
array_unshift($folderList, $folder->ID);
|
||||
|
||||
$images = DataObject::get('Image', 'ParentID IN (' . implode(', ', $folderList) . ')', 'Title');
|
||||
|
Loading…
Reference in New Issue
Block a user