summaryrefslogtreecommitdiffstats
path: root/lib/private/urlgenerator.php
diff options
context:
space:
mode:
authorLukas Reschke <lukas@owncloud.com>2015-03-17 13:15:52 +0100
committerLukas Reschke <lukas@owncloud.com>2015-03-17 13:15:52 +0100
commit1f4aa5350aa72d8b8aeb0d93929c19e32f48cd6b (patch)
treed9e333e98dfba63a94b90507213f421ec2decb83 /lib/private/urlgenerator.php
parent4f9b76d821ca2e113d211ef59e90965e3d4f22e0 (diff)
downloadnextcloud-server-1f4aa5350aa72d8b8aeb0d93929c19e32f48cd6b.tar.gz
nextcloud-server-1f4aa5350aa72d8b8aeb0d93929c19e32f48cd6b.zip
Reuse cache result
Diffstat (limited to 'lib/private/urlgenerator.php')
-rw-r--r--lib/private/urlgenerator.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/urlgenerator.php b/lib/private/urlgenerator.php
index b0de54caebe..93666a86780 100644
--- a/lib/private/urlgenerator.php
+++ b/lib/private/urlgenerator.php
@@ -119,8 +119,8 @@ class URLGenerator implements IURLGenerator {
public function imagePath($app, $image) {
$cache = $this->cacheFactory->create('imagePath');
$cacheKey = $app.'-'.$image;
- if($cache->hasKey($cacheKey)) {
- return $cache->get($cacheKey);
+ if($key = $cache->get($cacheKey)) {
+ return $key;
}
// Read the selected theme from the config file