]> source.dussan.org Git - nextcloud-server.git/commitdiff
Debug log fix
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Tue, 8 Nov 2016 20:45:43 +0000 (21:45 +0100)
committerRoeland Jago Douma <roeland@famdouma.nl>
Fri, 6 Jan 2017 08:42:13 +0000 (09:42 +0100)
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
lib/private/Template/SCSSCacher.php

index c53257d1a0fe8457bb44538bc42df7a915f7d170..50e6eb4851d427378e873e2196f6d362596ed9cb 100755 (executable)
@@ -95,7 +95,12 @@ class SCSSCacher {
                        $this->logger->error($e, ['app' => 'SCSSPHP']);
                        return false;
                }
-               return file_put_contents($this->fileCache, $this->rebaseUrls($compiledScss));
+
+               if(file_put_contents($this->fileCache, $this->rebaseUrls($compiledScss))) {
+                       $this->logger->debug($root.'/'.$file.' compiled and successfully cached', ['app' => 'SCSSPHP']);
+                       return true;
+               }
+               return false;
        }
 
        private function rebaseUrls($css) {