diff options
author | Bjoern Schiessle <schiessle@owncloud.com> | 2013-10-10 14:57:25 +0200 |
---|---|---|
committer | Bjoern Schiessle <schiessle@owncloud.com> | 2013-10-10 14:57:25 +0200 |
commit | bb3b38947d2b012b4fef0cdd32f62524b2c5898c (patch) | |
tree | 45e38ed646175bf06c73bc7c06d8f168129c212d /apps/files_versions | |
parent | e56947255e0760c6c560fa15f67468c966919685 (diff) | |
download | nextcloud-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.php | 1 |
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']; } |