From 35acbd6279ef05d26d4eb0054bfadb03fe4c1dd9 Mon Sep 17 00:00:00 2001 From: Bjoern Schiessle Date: Thu, 28 Jul 2016 16:32:39 +0200 Subject: [PATCH] fix background id selector for the first run wizard --- apps/theming/lib/controller/themingcontroller.php | 2 +- apps/theming/tests/lib/controller/ThemingControllerTest.php | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/theming/lib/controller/themingcontroller.php b/apps/theming/lib/controller/themingcontroller.php index 8c03060f88..61bc0b86bf 100644 --- a/apps/theming/lib/controller/themingcontroller.php +++ b/apps/theming/lib/controller/themingcontroller.php @@ -261,7 +261,7 @@ class ThemingController extends Controller { $backgroundLogo = $this->config->getAppValue($this->appName, 'backgroundMime'); if($backgroundLogo !== '') { $responseCss .= '#body-login {background-image: url(\'./loginbackground?v='.$cacheBusterValue.'\');}' . "\n"; - $responseCss .= 'firstrunwizard .firstrunwizard-header {' . + $responseCss .= '#firstrunwizard .firstrunwizard-header {' . 'background-image: url(\'./loginbackground?v='.$cacheBusterValue.'\');' . '}' . "\n"; } diff --git a/apps/theming/tests/lib/controller/ThemingControllerTest.php b/apps/theming/tests/lib/controller/ThemingControllerTest.php index 253c263916..0cbf125d8f 100644 --- a/apps/theming/tests/lib/controller/ThemingControllerTest.php +++ b/apps/theming/tests/lib/controller/ThemingControllerTest.php @@ -486,7 +486,7 @@ class ThemingControllerTest extends TestCase { ->willReturn('text/svg'); $expectedData = '#body-login {background-image: url(\'./loginbackground?v=0\');}' . "\n"; - $expectedData .= 'firstrunwizard .firstrunwizard-header {' . + $expectedData .= '#firstrunwizard .firstrunwizard-header {' . 'background-image: url(\'./loginbackground?v=0\');' . '}' . "\n"; @@ -559,7 +559,7 @@ class ThemingControllerTest extends TestCase { '}' . "\n" ); $expectedData .= '#body-login {background-image: url(\'./loginbackground?v=0\');}' . "\n"; - $expectedData .= 'firstrunwizard .firstrunwizard-header {' . + $expectedData .= '#firstrunwizard .firstrunwizard-header {' . 'background-image: url(\'./loginbackground?v=0\');' . '}' . "\n"; $expected = new Http\DataDownloadResponse($expectedData, 'style', 'text/css'); @@ -631,7 +631,7 @@ class ThemingControllerTest extends TestCase { '}' . "\n" ); $expectedData .= '#body-login {background-image: url(\'./loginbackground?v=0\');}' . "\n"; - $expectedData .= 'firstrunwizard .firstrunwizard-header {' . + $expectedData .= '#firstrunwizard .firstrunwizard-header {' . 'background-image: url(\'./loginbackground?v=0\');' . '}' . "\n"; $expectedData .= '#header .header-appname, #expandDisplayName { color: #000000; }' . "\n";