aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_trashbin/lib
diff options
context:
space:
mode:
authorGeorg Ehrke <developer@georgehrke.com>2013-07-08 10:53:53 +0200
committerGeorg Ehrke <developer@georgehrke.com>2013-07-08 10:53:53 +0200
commit04292ff16c56d85216ddbd6f644e8055413c0170 (patch)
treed05dfd86565997c95a33f536b34a3a904e38c531 /apps/files_trashbin/lib
parent6e864e6599602609b5808ae4d043b273a9fe5071 (diff)
downloadnextcloud-server-04292ff16c56d85216ddbd6f644e8055413c0170.tar.gz
nextcloud-server-04292ff16c56d85216ddbd6f644e8055413c0170.zip
implement use of preview icons in thrashbin app
Diffstat (limited to 'apps/files_trashbin/lib')
-rw-r--r--apps/files_trashbin/lib/trash.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/files_trashbin/lib/trash.php b/apps/files_trashbin/lib/trash.php
index 7b8d3cb4252..e82a597c61e 100644
--- a/apps/files_trashbin/lib/trash.php
+++ b/apps/files_trashbin/lib/trash.php
@@ -850,4 +850,8 @@ class Trashbin {
//Listen to delete user signal
\OCP\Util::connectHook('OC_User', 'pre_deleteUser', "OCA\Files_Trashbin\Hooks", "deleteUser_hook");
}
+
+ public static function preview_icon($path) {
+ return \OC_Helper::linkToRoute( 'core_ajax_trashbin_preview', array('x' => 44, 'y' => 44, 'file' => $path));
+ }
}