diff options
author | Joas Schilling <coding@schilljs.com> | 2016-09-06 08:55:22 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2016-09-06 08:55:22 +0200 |
commit | 67408c3f63b94431f767248a69569bb320de0968 (patch) | |
tree | 50bdba4e94023aba36c07ed3538a29bb3cfc5236 /apps/theming/lib | |
parent | 1d834bd49e2ba215b0de58fc8845f467ddfe51e4 (diff) | |
download | nextcloud-server-67408c3f63b94431f767248a69569bb320de0968.tar.gz nextcloud-server-67408c3f63b94431f767248a69569bb320de0968.zip |
Add image URLs and tests
Diffstat (limited to 'apps/theming/lib')
-rw-r--r-- | apps/theming/lib/Capabilities.php | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/apps/theming/lib/Capabilities.php b/apps/theming/lib/Capabilities.php index 45a48e3c2ca..b483cc80aed 100644 --- a/apps/theming/lib/Capabilities.php +++ b/apps/theming/lib/Capabilities.php @@ -24,6 +24,7 @@ namespace OCA\Theming; use OCP\Capabilities\ICapability; +use OCP\IURLGenerator; /** * Class Capabilities @@ -35,11 +36,17 @@ class Capabilities implements ICapability { /** @var ThemingDefaults */ protected $theming; + + /** @var IURLGenerator */ + protected $url; + /** * @param ThemingDefaults $theming + * @param IURLGenerator $url */ - public function __construct(ThemingDefaults $theming) { + public function __construct(ThemingDefaults $theming, IURLGenerator $url) { $this->theming = $theming; + $this->url = $url; } /** @@ -54,6 +61,8 @@ class Capabilities implements ICapability { 'url' => $this->theming->getBaseUrl(), 'slogan' => $this->theming->getSlogan(), 'color' => $this->theming->getMailHeaderColor(), + 'logo' => $this->url->getAbsoluteURL($this->theming->getLogo()), + 'background' => $this->url->getAbsoluteURL($this->theming->getBackground()), ], ]; } |