File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -194,17 +194,16 @@ public function getCSSVariables(): array {
194194 // Register image variables only if custom-defined
195195 $ backgroundDeleted = $ this ->config ->getAppValue ('theming ' , 'backgroundMime ' , '' ) === 'backgroundColor ' ;
196196 foreach (['logo ' , 'logoheader ' , 'favicon ' , 'background ' ] as $ image ) {
197- if ($ this ->imageManager ->hasImage ($ image )) {
198- // If primary as background has been request, let's not define the background image
199- if ($ image === 'background ' && $ backgroundDeleted ) {
200- $ variables ["--image-background-plain " ] = 'true ' ;
201- continue ;
202- } else if ($ image === 'background ' ) {
203- $ variables ['--image-background-size ' ] = 'cover ' ;
204- }
205- $ variables ["--image- $ image " ] = "url(' " .$ this ->imageManager ->getImageUrl ($ image )."') " ;
197+ // If primary as background has been request, let's not define the background image
198+ if ($ image === 'background ' && $ backgroundDeleted ) {
199+ $ variables ["--image-background-plain " ] = 'true ' ;
200+ continue ;
201+ } else if ($ image === 'background ' ) {
202+ $ variables ['--image-background-size ' ] = 'cover ' ;
206203 }
204+ $ variables ["--image- $ image " ] = "url(' " .$ this ->imageManager ->getImageUrl ($ image )."') " ;
207205 }
206+ $ variables ["--image-login-background " ] = $ variables ["--image-background " ];
208207
209208 if ($ hasCustomLogoHeader ) {
210209 $ variables ["--image-logoheader-custom " ] = 'true ' ;
You can’t perform that action at this time.
0 commit comments