Merge pull request #6990 from owncloud/files-fixrenamewarnings

Fix warnings in logs when renaming over the web UI
This commit is contained in:
Vincent Petry 2014-01-29 02:21:30 -08:00
commit a2b79ead2d
1 changed files with 5 additions and 2 deletions

View File

@ -83,14 +83,17 @@ class App {
else {
$meta['type'] = 'file';
}
// these need to be set for determineIcon()
$meta['isPreviewAvailable'] = \OC::$server->getPreviewManager()->isMimeSupported($meta['mimetype']);
$meta['directory'] = $dir;
$fileinfo = array(
'id' => $meta['fileid'],
'mime' => $meta['mimetype'],
'size' => $meta['size'],
'etag' => $meta['etag'],
'directory' => $dir,
'directory' => $meta['directory'],
'name' => $newname,
'isPreviewAvailable' => \OC::$server->getPreviewManager()->isMimeSupported($meta['mimetype']),
'isPreviewAvailable' => $meta['isPreviewAvailable'],
'icon' => \OCA\Files\Helper::determineIcon($meta)
);
$result['success'] = true;