From b2d2220d22b20611c270ede444f56abab1b63633 Mon Sep 17 00:00:00 2001 From: Sean Harvey Date: Sun, 7 Feb 2010 22:54:30 +0000 Subject: [PATCH] MINOR Removed arguments to Hierarchy::getDescendantIDList() calls, as the method does not have any git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.4@98341 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- code/CMSMain.php | 2 +- code/ThumbnailStripField.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/code/CMSMain.php b/code/CMSMain.php index 1d1eb557..f584db12 100755 --- a/code/CMSMain.php +++ b/code/CMSMain.php @@ -564,7 +564,7 @@ JS; // before deleting the records, get the descendants of this tree if($record) { - $descendantIDs = $record->getDescendantIDList('SiteTree'); + $descendantIDs = $record->getDescendantIDList(); // then delete them from the live site too $descendantsRemoved = 0; diff --git a/code/ThumbnailStripField.php b/code/ThumbnailStripField.php index ed4eb758..441add29 100755 --- a/code/ThumbnailStripField.php +++ b/code/ThumbnailStripField.php @@ -44,7 +44,7 @@ class ThumbnailStripField extends FormField { $folder = DataObject::get_by_id('Folder', (int) $_GET['folderID']); if($folder) { - $folderList = $folder->getDescendantIDList('Folder'); + $folderList = $folder->getDescendantIDList(); array_unshift($folderList, $folder->ID); $whereSQL = '"ParentID" IN (' . implode(', ', $folderList) . ')';