diff options
author | Lukas Reschke <lukas@owncloud.com> | 2015-03-17 13:15:52 +0100 |
---|---|---|
committer | Lukas Reschke <lukas@owncloud.com> | 2015-03-17 13:15:52 +0100 |
commit | 1f4aa5350aa72d8b8aeb0d93929c19e32f48cd6b (patch) | |
tree | d9e333e98dfba63a94b90507213f421ec2decb83 /lib/private/urlgenerator.php | |
parent | 4f9b76d821ca2e113d211ef59e90965e3d4f22e0 (diff) | |
download | nextcloud-server-1f4aa5350aa72d8b8aeb0d93929c19e32f48cd6b.tar.gz nextcloud-server-1f4aa5350aa72d8b8aeb0d93929c19e32f48cd6b.zip |
Reuse cache result
Diffstat (limited to 'lib/private/urlgenerator.php')
-rw-r--r-- | lib/private/urlgenerator.php | 4 |
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 |