From 1585918f2958399d9958438b09d67feb815b6daf Mon Sep 17 00:00:00 2001 From: rabuzarus <> Date: Mon, 23 Oct 2017 15:25:09 +0200 Subject: [PATCH] frio: set a dummy img for background image if no img was set (Otherwise the empty value would be replaced in the browser with a path to the theme and the css would be loaded a second time) --- view/theme/frio/style.php | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/view/theme/frio/style.php b/view/theme/frio/style.php index 76cbb97776..041f890e29 100644 --- a/view/theme/frio/style.php +++ b/view/theme/frio/style.php @@ -65,12 +65,13 @@ if (! $schema) { //Set some defaults - we have to do this after pulling owner settings, and we have to check for each setting //individually. If we don't, we'll have problems if a user has set one, but not all options. -$nav_bg = (empty($nav_bg) ? "#708fa0" : $nav_bg); -$nav_icon_color = (empty($nav_icon_color) ? "#fff" : $nav_icon_color); -$link_color = (empty($link_color) ? "#6fdbe8" : $link_color); -$bgcolor = (empty($bgcolor) ? "#ededed" : $bgcolor); -$background_image = (empty($background_image) ? '' : $background_image); -$modified = (empty($modified) ? time() : $modified); +$nav_bg = (empty($nav_bg) ? "#708fa0" : $nav_bg); +$nav_icon_color = (empty($nav_icon_color) ? "#fff" : $nav_icon_color); +$link_color = (empty($link_color) ? "#6fdbe8" : $link_color); +$bgcolor = (empty($bgcolor) ? "#ededed" : $bgcolor); +// The background image can not be empty. So we use a dummy jpg if no image was set. +$background_image = (empty($background_image) ? 'img/none.jpg' : $background_image); +$modified = (empty($modified) ? time() :$modified); $contentbg_transp = ((isset($contentbg_transp) && $contentbg_transp != "") ? $contentbg_transp : 100); -- 2.39.5