Merge pull request #6819 from owncloud/files-ispreviewenabledwarningfix
Fixed isPreviewAvailable warnings in log
This commit is contained in:
commit
f354717c4c
2 changed files with 2 additions and 2 deletions
|
@ -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)) {
|
||||||
} 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);
|
||||||
|
|
Loading…
Reference in a new issue