summaryrefslogtreecommitdiffstats
path: root/apps/files_trashbin/lib
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2018-03-13 22:04:08 +0100
committerRoeland Jago Douma <roeland@famdouma.nl>2018-03-13 22:04:08 +0100
commit83873e3da1535e02b3eac72e212f7ba0e251b7b9 (patch)
treea24e9351c510994e658628ecbc8c053ee95aad3d /apps/files_trashbin/lib
parentede723f1b19c4c1afb7627af85c1e2f8d8a31386 (diff)
downloadnextcloud-server-83873e3da1535e02b3eac72e212f7ba0e251b7b9.tar.gz
nextcloud-server-83873e3da1535e02b3eac72e212f7ba0e251b7b9.zip
Remove deprecated URL functions for OCP\Util
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'apps/files_trashbin/lib')
-rw-r--r--apps/files_trashbin/lib/Trashbin.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_trashbin/lib/Trashbin.php b/apps/files_trashbin/lib/Trashbin.php
index a9eb5224728..3c32e6446ca 100644
--- a/apps/files_trashbin/lib/Trashbin.php
+++ b/apps/files_trashbin/lib/Trashbin.php
@@ -1000,6 +1000,6 @@ class Trashbin {
* @return string
*/
public static function preview_icon($path) {
- return \OCP\Util::linkToRoute('core_ajax_trashbin_preview', array('x' => 32, 'y' => 32, 'file' => $path));
+ return \OC::$server->getURLGenerator()->linkToRoute('core_ajax_trashbin_preview', array('x' => 32, 'y' => 32, 'file' => $path));
}
}