aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Template/CSSResourceLocator.php
diff options
context:
space:
mode:
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2016-11-09 11:18:43 +0100
committerRoeland Jago Douma <roeland@famdouma.nl>2017-01-06 09:42:13 +0100
commit3a7d6846facec4e03966ab8e03f0fcbd946a8ef0 (patch)
tree4eb8cd80b39fc8edecca3c51dbb9f3978e02eaa4 /lib/private/Template/CSSResourceLocator.php
parentcf73e71ff16027099ff5b006f445f7d193b0c5e7 (diff)
downloadnextcloud-server-3a7d6846facec4e03966ab8e03f0fcbd946a8ef0.tar.gz
nextcloud-server-3a7d6846facec4e03966ab8e03f0fcbd946a8ef0.zip
Appdata integration 1 & log fix 2
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'lib/private/Template/CSSResourceLocator.php')
-rwxr-xr-xlib/private/Template/CSSResourceLocator.php12
1 files changed, 10 insertions, 2 deletions
diff --git a/lib/private/Template/CSSResourceLocator.php b/lib/private/Template/CSSResourceLocator.php
index 353555a6811..2e1db9a6757 100755
--- a/lib/private/Template/CSSResourceLocator.php
+++ b/lib/private/Template/CSSResourceLocator.php
@@ -26,14 +26,22 @@
namespace OC\Template;
class CSSResourceLocator extends ResourceLocator {
+
+ protected $appData;
+
+ public function __construct(\OCP\ILogger $logger, $theme, $core_map, $party_map, $appData) {
+ $this->appData = $appData;
+ parent::__construct($logger, $theme, $core_map, $party_map);
+ }
+
/**
* @param string $style
*/
public function doFind($style) {
if (strpos($style, '3rdparty') === 0
&& $this->appendIfExist($this->thirdpartyroot, $style.'.css')
- || $this->cacheAndAppendScssIfExist($this->serverroot, $style.'.scss')
- || $this->cacheAndAppendScssIfExist($this->serverroot, 'core/'.$style.'.scss')
+ || $this->cacheAndAppendScssIfExist($this->serverroot, $style.'.scss', $this->appData)
+ || $this->cacheAndAppendScssIfExist($this->serverroot, 'core/'.$style.'.scss', $this->appData)
|| $this->appendIfExist($this->serverroot, $style.'.css')
|| $this->appendIfExist($this->serverroot, 'core/'.$style.'.css')
) {