From b3f57dd4543b52f21d8c7c1ab21f1898c1f7a08a Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Thu, 16 Oct 2008 11:03:45 +0000 Subject: [PATCH] API CHANGE Removed Filesystem::moverootfilesto() git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@64401 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- filesystem/Filesystem.php | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/filesystem/Filesystem.php b/filesystem/Filesystem.php index a03eb0870..83ea96d4e 100755 --- a/filesystem/Filesystem.php +++ b/filesystem/Filesystem.php @@ -43,21 +43,6 @@ class Filesystem extends Object { } } - - public function moverootfilesto() { - if(!Permission::check('ADMIN')) Security::permissionFailure($this); - - if($folder = $this->urlParams['ID']) { - $newParent = Folder::findOrMake($folder); - $files = DataObject::get("File", "ClassName != 'Folder' AND ParentID = 0"); - foreach($files as $file) { - echo "
  • " , $file->RelativePath; - $file->ParentID = $newParent->ID; - echo " -> " , $file->RelativePath; - } - } - } - /** * Cleanup function to reset all the Filename fields. Visit File/fixfiles to call. */