aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorRobin McCorkell <rmccorkell@karoshi.org.uk>2015-03-17 19:36:23 +0000
committerRobin McCorkell <rmccorkell@karoshi.org.uk>2015-03-17 19:36:23 +0000
commit760f5fc5e550b6444ed156c600fee7673b330857 (patch)
tree4bc3a4d709396ec57ebbf62aa29964246f8474c8 /apps
parentebb834d879f10ea24b8cf032f6f0000076843195 (diff)
parent1f4aa5350aa72d8b8aeb0d93929c19e32f48cd6b (diff)
downloadnextcloud-server-760f5fc5e550b6444ed156c600fee7673b330857.tar.gz
nextcloud-server-760f5fc5e550b6444ed156c600fee7673b330857.zip
Merge pull request #14954 from owncloud/cache-image-path
Cache \OC\URLGenerator::imagePath
Diffstat (limited to 'apps')
-rw-r--r--apps/files_sharing/public.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_sharing/public.php b/apps/files_sharing/public.php
index 50a6432dd95..9e4e8d23151 100644
--- a/apps/files_sharing/public.php
+++ b/apps/files_sharing/public.php
@@ -10,7 +10,7 @@
// This file is just used to redirect the legacy sharing URLs (< ownCloud 8) to the new ones
-$urlGenerator = new \OC\URLGenerator(\OC::$server->getConfig());
+$urlGenerator = \OC::$server->getURLGenerator();
$token = isset($_GET['t']) ? $_GET['t'] : '';
$route = isset($_GET['download']) ? 'files_sharing.sharecontroller.downloadShare' : 'files_sharing.sharecontroller.showShare';