Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorJan-Christoph Borchardt <hey@jancborchardt.net>2017-08-29 16:18:51 +0300
committerJan-Christoph Borchardt <hey@jancborchardt.net>2017-08-29 17:04:11 +0300
commitbadbab81eacd3f4a8242fe23feb5319ee4247027 (patch)
tree1bac2bd1358a331c64bc920328ab574dddbd171a /apps
parent8c917cbfe0aa33e37d7cff278690b07bf40e1b62 (diff)
Update background image to the one used on the website
Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
Diffstat (limited to 'apps')
-rw-r--r--apps/theming/lib/ThemingDefaults.php2
-rw-r--r--apps/theming/tests/ThemingDefaultsTest.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/apps/theming/lib/ThemingDefaults.php b/apps/theming/lib/ThemingDefaults.php
index dff24ee7960..b10dc4b7ea8 100644
--- a/apps/theming/lib/ThemingDefaults.php
+++ b/apps/theming/lib/ThemingDefaults.php
@@ -183,7 +183,7 @@ class ThemingDefaults extends \OC_Defaults {
$cacheBusterCounter = $this->config->getAppValue('theming', 'cachebuster', '0');
if(!$backgroundLogo || !$backgroundExists) {
- return $this->urlGenerator->imagePath('core','background.jpg') . '?v=' . $cacheBusterCounter;
+ return $this->urlGenerator->imagePath('core','background.png') . '?v=' . $cacheBusterCounter;
}
return $this->urlGenerator->linkToRoute('theming.Theming.getLoginBackground') . '?v=' . $cacheBusterCounter;
diff --git a/apps/theming/tests/ThemingDefaultsTest.php b/apps/theming/tests/ThemingDefaultsTest.php
index 057229483e9..cb827773470 100644
--- a/apps/theming/tests/ThemingDefaultsTest.php
+++ b/apps/theming/tests/ThemingDefaultsTest.php
@@ -400,7 +400,7 @@ class ThemingDefaultsTest extends TestCase {
->willThrowException(new \Exception());
$this->urlGenerator->expects($this->once())
->method('imagePath')
- ->with('core', 'background.jpg')
+ ->with('core', 'background.png')
->willReturn('core-background');
$this->assertEquals('core-background?v=0', $this->template->getBackground());
}