MINOR Code formatting cleanup in AssetAdmin->addfolder()

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@64733 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Sean Harvey 2008-10-24 01:23:52 +00:00
parent ae4986b0e5
commit 21a61404ba

View File

@ -492,14 +492,13 @@ JS;
$parent = ($_REQUEST['ParentID'] && is_numeric($_REQUEST['ParentID'])) ? $_REQUEST['ParentID'] : 0;
if($parent) {
$parentObj = DataObject::get_by_id("File", $parent);
$parentObj = DataObject::get_by_id('File', $parent);
if(!$parentObj || !$parentObj->ID) $parent = 0;
}
$p = new Folder();
$p->ParentID = $parent;
$p->Title = _t('AssetAdmin.NEWFOLDER',"NewFolder");
$p->Name = _t('AssetAdmin.NEWFOLDER', 'NewFolder');
// Get the folder to be created