From: John Molakvoæ (skjnldsv) Date: Thu, 22 Dec 2016 14:41:13 +0000 (+0100) Subject: Fix variables should be passed by reference X-Git-Tag: v12.0.0beta1~732^2~8 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=e3a57c1f07ece1c93feef31ae44a356f7d794096;p=nextcloud-server.git Fix variables should be passed by reference Signed-off-by: John Molakvoæ (skjnldsv) --- diff --git a/lib/private/Template/SCSSCacher.php b/lib/private/Template/SCSSCacher.php index d227efce6bb..67f77688163 100755 --- a/lib/private/Template/SCSSCacher.php +++ b/lib/private/Template/SCSSCacher.php @@ -175,7 +175,8 @@ class SCSSCacher { * @return string */ public function getCachedSCSS($appName, $fileName) { - $fileName = array_pop(explode('/', $fileName)); + $tmpfileLoc = explode('/', $fileName); + $fileName = array_pop($tmpfileLoc); $fileName = str_replace('.scss', '.css', $fileName); return substr($this->urlGenerator->linkToRoute('core.Css.getCss', array('fileName' => $fileName, 'appName' => $appName)), 1);