]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix variables should be passed by reference
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Thu, 22 Dec 2016 14:41:13 +0000 (15:41 +0100)
committerRoeland Jago Douma <roeland@famdouma.nl>
Fri, 6 Jan 2017 08:42:39 +0000 (09:42 +0100)
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
lib/private/Template/SCSSCacher.php

index d227efce6bbd2521b36c67574f2d360e3bc8f55a..67f77688163f77bb271fe731c4cb18ee884ffaf0 100755 (executable)
@@ -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);