mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
MINOR Removed ContentNegotiator::disable() since it's disabled by default (in AssetAdmin)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.4@93681 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
84a591bf2b
commit
5a1a947b92
@ -127,9 +127,6 @@ JS
|
|||||||
if(isset($data['ID']) && $data['ID'] != 'root') $folder = DataObject::get_by_id("Folder", $data['ID']);
|
if(isset($data['ID']) && $data['ID'] != 'root') $folder = DataObject::get_by_id("Folder", $data['ID']);
|
||||||
else $folder = singleton('Folder');
|
else $folder = singleton('Folder');
|
||||||
|
|
||||||
// Don't modify the output of the template, or it will become invalid
|
|
||||||
ContentNegotiator::disable();
|
|
||||||
|
|
||||||
return array( 'CanUpload' => $folder->canEdit());
|
return array( 'CanUpload' => $folder->canEdit());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user