summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/public.php
diff options
context:
space:
mode:
authorLukas Reschke <lukas@owncloud.com>2015-03-17 12:35:47 +0100
committerLukas Reschke <lukas@owncloud.com>2015-03-17 12:35:47 +0100
commit9e2ebf2dcea8d3e1ee153eba43124ca95c496443 (patch)
treed48d32dcd87aa77304c7dd9f0acc6d79fd2993fd /apps/files_sharing/public.php
parentd96b97043b2fa7ba4d676c1d7b44f4aa5e58c8ee (diff)
downloadnextcloud-server-9e2ebf2dcea8d3e1ee153eba43124ca95c496443.tar.gz
nextcloud-server-9e2ebf2dcea8d3e1ee153eba43124ca95c496443.zip
Cache \OC\URLGenerator::imagePath
\OC\URLGenerator::imagePath is a really expensive operation due to all the I/O handling and can really benefit from caching.
Diffstat (limited to 'apps/files_sharing/public.php')
-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';