summaryrefslogtreecommitdiffstats
path: root/apps
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
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')
-rw-r--r--apps/files/ajax/list.php2
-rw-r--r--apps/files_sharing/templates/public.php2
-rw-r--r--apps/files_trashbin/lib/Trashbin.php2
3 files changed, 3 insertions, 3 deletions
diff --git a/apps/files/ajax/list.php b/apps/files/ajax/list.php
index de3c7ccce5e..951377abf86 100644
--- a/apps/files/ajax/list.php
+++ b/apps/files/ajax/list.php
@@ -43,7 +43,7 @@ try {
}
$data = array();
- $baseUrl = OCP\Util::linkTo('files', 'index.php') . '?dir=';
+ $baseUrl = \OC::$server->getURLGenerator()->linkTo('files', 'index.php') . '?dir=';
$permissions = $dirInfo->getPermissions();
diff --git a/apps/files_sharing/templates/public.php b/apps/files_sharing/templates/public.php
index 698febd4c17..e8eb28f25c6 100644
--- a/apps/files_sharing/templates/public.php
+++ b/apps/files_sharing/templates/public.php
@@ -81,7 +81,7 @@ $maxUploadFilesize = min($upload_max_filesize, $post_max_size);
<input type="hidden" name="dir" id="dir" value="" />
<div class="hiddenuploadfield">
<input type="file" id="file_upload_start" class="hiddenuploadfield" name="files[]"
- data-url="<?php p(OCP\Util::linkTo('files', 'ajax/upload.php')); ?>" />
+ data-url="<?php p(\OC::$server->getURLGenerator()->linkTo('files', 'ajax/upload.php')); ?>" />
</div>
<?php endif; ?>
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));
}
}