mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
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:
parent
ae4986b0e5
commit
21a61404ba
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user