Browse Source

fix background id selector for the first run wizard

pull/636/head
Bjoern Schiessle 9 years ago
parent
commit
14ca7c9cdc
No known key found for this signature in database GPG Key ID: 2378A753E2BF04F6
  1. 2
      apps/theming/lib/controller/themingcontroller.php
  2. 6
      apps/theming/tests/lib/controller/ThemingControllerTest.php

2
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";
}

6
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";

Loading…
Cancel
Save