Skip to content
Snippets Groups Projects
Commit f354717c authored by Vincent Petry's avatar Vincent Petry
Browse files

Merge pull request #6819 from owncloud/files-ispreviewenabledwarningfix

Fixed isPreviewAvailable warnings in log
parents 903b330c f4c198b9
No related branches found
No related tags found
No related merge requests found
...@@ -18,7 +18,7 @@ $totalsize = 0; ?> ...@@ -18,7 +18,7 @@ $totalsize = 0; ?>
data-size="<?php p($file['size']);?>" data-size="<?php p($file['size']);?>"
data-etag="<?php p($file['etag']);?>" data-etag="<?php p($file['etag']);?>"
data-permissions="<?php p($file['permissions']); ?>"> data-permissions="<?php p($file['permissions']); ?>">
<?php if($file['isPreviewAvailable']): ?> <?php if(isset($file['isPreviewAvailable']) and $file['isPreviewAvailable']): ?>
<td class="filename svg preview-icon" <td class="filename svg preview-icon"
<?php else: ?> <?php else: ?>
<td class="filename svg" <td class="filename svg"
......
...@@ -189,8 +189,8 @@ if (isset($path)) { ...@@ -189,8 +189,8 @@ if (isset($path)) {
} else { } else {
$i['extension'] = ''; $i['extension'] = '';
} }
$i['isPreviewAvailable'] = \OC::$server->getPreviewManager()->isMimeSupported($i['mimetype']);
} }
$i['isPreviewAvailable'] = \OC::$server->getPreviewManager()->isMimeSupported($i['mimetype']);
$i['directory'] = $getPath; $i['directory'] = $getPath;
$i['permissions'] = OCP\PERMISSION_READ; $i['permissions'] = OCP\PERMISSION_READ;
$i['icon'] = determineIcon($i, $basePath, $token); $i['icon'] = determineIcon($i, $basePath, $token);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment