commit eddedeb873a7fb96903b3e16547992a91b2bb1a4
parent cb78fd6c2de413937ad182e5e86ae5cfa3dc9c0b
Author: Jan Dankert <devnull@localhost>
Date: Mon, 6 Nov 2017 22:10:01 +0100
Folder-Properties mit ausgeben, um dieser über die API verfügbar zu machen.
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/action/FolderAction.class.php b/action/FolderAction.class.php
@@ -1180,6 +1180,7 @@ class FolderAction extends ObjectAction
{
$file = new File( $id );
$file->load();
+ $list[$id]['size'] = $file->size;
$list[$id]['desc'] .= ' - '.intval($file->size/1000).'kB';
if ( substr($file->mimeType(),0,6) == 'image/' )
@@ -1235,6 +1236,7 @@ class FolderAction extends ObjectAction
$rootFolder = new Folder( Folder::getRootFolderId() );
$rootFolder->load();
+ $this->setTemplateVar('properties' ,$this->folder->getProperties() );
$this->setTemplateVar('rootfolderid' ,$rootFolder->id );
$this->setTemplateVar('rootfoldername',$rootFolder->name);
}