diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2016-11-30 16:30:04 +0100 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2017-01-06 09:42:14 +0100 |
commit | d9eaed5ffafd5252545f490401981d1e9b0fc889 (patch) | |
tree | 5e901570ee6bb8baa55bc5e6c7071a3c5341a376 /lib/private/Template/ResourceLocator.php | |
parent | 1e44a15dd1cba215bf10d0f73a7ef2730a77c2b0 (diff) | |
download | nextcloud-server-d9eaed5ffafd5252545f490401981d1e9b0fc889.tar.gz nextcloud-server-d9eaed5ffafd5252545f490401981d1e9b0fc889.zip |
Formatting
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'lib/private/Template/ResourceLocator.php')
-rwxr-xr-x | lib/private/Template/ResourceLocator.php | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/lib/private/Template/ResourceLocator.php b/lib/private/Template/ResourceLocator.php index 07a4387df8a..420317d27ac 100755 --- a/lib/private/Template/ResourceLocator.php +++ b/lib/private/Template/ResourceLocator.php @@ -107,38 +107,6 @@ abstract class ResourceLocator { } /** - * cache and append the scss $file if exist at $root - * - * @param string $root path to check - * @param string $file the filename - * @param \OCP\Files\IAppData $appData - * @param \OCP\IURLGenerator $urlGenerator - * @param \OC\SystemConfig $systemConfig - * @param string|null $webRoot base for path, default map $root to $webRoot - * @return bool True if the resource was found and cached, false otherwise - */ - protected function cacheAndAppendScssIfExist($root, $file, $appData, $urlGenerator, $systemConfig, $webRoot = null) { - if (is_file($root.'/'.$file)) { - $scssCache = new \OC\Template\SCSSCacher( - $this->logger, - $root, - $file, - $appData, - $urlGenerator, - $systemConfig); - - if($scssCache->process()) { - $this->append($root, $scssCache->getCachedSCSS('core'), $webRoot, false); - return true; - } else { - $this->logger->error('Failed to compile and/or save '.$root.'/'.$file, ['app' => 'core']); - return false; - } - } - return false; - } - - /** * append the $file resource at $root * * @param string $root path to check |