summaryrefslogtreecommitdiffstats
path: root/lib/private/PreviewManager.php
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2016-10-16 20:42:35 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2016-11-03 14:00:33 +0100
commitd720a2fb5719122a0250d63c269380c6ba413755 (patch)
tree63360dc37fdbcbbb95eba24c12700008ec46d4e3 /lib/private/PreviewManager.php
parent2164085f22b56a3d9739a57788a93779a0d6ac39 (diff)
downloadnextcloud-server-d720a2fb5719122a0250d63c269380c6ba413755.tar.gz
nextcloud-server-d720a2fb5719122a0250d63c269380c6ba413755.zip
Moved over files_versions
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'lib/private/PreviewManager.php')
-rw-r--r--lib/private/PreviewManager.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/private/PreviewManager.php b/lib/private/PreviewManager.php
index 0cda55751bf..2c17a5f3c80 100644
--- a/lib/private/PreviewManager.php
+++ b/lib/private/PreviewManager.php
@@ -151,11 +151,12 @@ class PreviewManager implements IPreview {
* @param int $height
* @param bool $crop
* @param string $mode
+ * @param string $mimeType
* @return ISimpleFile
* @throws NotFoundException
* @since 9.2.0
*/
- public function getPreview(File $file, $width = -1, $height = -1, $crop = false, $mode = IPreview::MODE_FILL) {
+ public function getPreview(File $file, $width = -1, $height = -1, $crop = false, $mode = IPreview::MODE_FILL, $mimeType = null) {
if ($this->generator === null) {
$this->generator = new Generator(
$this->rootFolder,
@@ -165,7 +166,7 @@ class PreviewManager implements IPreview {
);
}
- return $this->generator->getPreview($file, $width, $height, $crop, $mode);
+ return $this->generator->getPreview($file, $width, $height, $crop, $mode, $mimeType);
}
/**