summaryrefslogtreecommitdiffstats
path: root/apps/files_versions
diff options
context:
space:
mode:
authorBjoern Schiessle <schiessle@owncloud.com>2013-10-10 14:57:25 +0200
committerBjoern Schiessle <schiessle@owncloud.com>2013-10-10 14:57:25 +0200
commitbb3b38947d2b012b4fef0cdd32f62524b2c5898c (patch)
tree45e38ed646175bf06c73bc7c06d8f168129c212d /apps/files_versions
parente56947255e0760c6c560fa15f67468c966919685 (diff)
downloadnextcloud-server-bb3b38947d2b012b4fef0cdd32f62524b2c5898c.tar.gz
nextcloud-server-bb3b38947d2b012b4fef0cdd32f62524b2c5898c.zip
add missing preview link
Diffstat (limited to 'apps/files_versions')
-rw-r--r--apps/files_versions/lib/versions.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/files_versions/lib/versions.php b/apps/files_versions/lib/versions.php
index 4ad272e43cc..5b291dfa10b 100644
--- a/apps/files_versions/lib/versions.php
+++ b/apps/files_versions/lib/versions.php
@@ -256,6 +256,7 @@ class Storage {
$versions[$key]['cur'] = 0;
$versions[$key]['version'] = $version;
$versions[$key]['humanReadableTimestamp'] = self::getHumanReadableTimestamp($version);
+ $versions[$key]['preview'] = \OCP\Util::linkToRoute('core_ajax_versions_preview', array('file' => $filename, 'version' => $version));
$versions[$key]['path'] = $filename;
$versions[$key]['size'] = $file['size'];
}