diff options
author | Bjoern Schiessle <schiessle@owncloud.com> | 2013-10-02 15:23:51 +0200 |
---|---|---|
committer | Bjoern Schiessle <schiessle@owncloud.com> | 2013-10-02 15:23:51 +0200 |
commit | eb1216f9493c78a0c1a3e49058ac1a96cd3a5a5c (patch) | |
tree | 254f2dad7125d4d35fbb9c2fb61a5d9c00b6d937 /apps/files_versions/lib/versions.php | |
parent | 535ed8369f701a184340a428e82cc8d7cc7588bb (diff) | |
download | nextcloud-server-eb1216f9493c78a0c1a3e49058ac1a96cd3a5a5c.tar.gz nextcloud-server-eb1216f9493c78a0c1a3e49058ac1a96cd3a5a5c.zip |
add previews to versions dialog
Diffstat (limited to 'apps/files_versions/lib/versions.php')
-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 0b4699dc5c0..fc8d0365c71 100644 --- a/apps/files_versions/lib/versions.php +++ b/apps/files_versions/lib/versions.php @@ -266,6 +266,7 @@ class Storage { $versions[$key]['version'] = $version; $versions[$key]['humanReadableTimestamp'] = self::getHumanReadableTimestamp($version); $versions[$key]['path'] = $filename; + $versions[$key]['preview'] = \OCP\Util::linkToRoute('core_ajax_versions_preview', array('file' => $filename, 'version' => $version)); $versions[$key]['size'] = $versions_fileview->filesize($filename.'.v'.$version); // if file with modified date exists, flag it in array as currently enabled version |