Skip to content
Snippets Groups Projects
Commit 6ab6b8ab authored by Steven Wittens's avatar Steven Wittens
Browse files

#57333: Only set logo image path if it exists

parent e1c749fa
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -298,12 +298,11 @@ function theme_get_setting($setting_name, $refresh = FALSE) { ...@@ -298,12 +298,11 @@ function theme_get_setting($setting_name, $refresh = FALSE) {
} }
if ($settings['toggle_logo']) { if ($settings['toggle_logo']) {
$settings['logo'] = base_path();
if ($settings['default_logo']) { if ($settings['default_logo']) {
$settings['logo'] .= dirname($theme_object->filename) .'/logo.png'; $settings['logo'] = base_path() . dirname($theme_object->filename) .'/logo.png';
} }
elseif ($settings['logo_path']) { elseif ($settings['logo_path']) {
$settings['logo'] .= $settings['logo_path']; $settings['logo'] = base_path() . $settings['logo_path'];
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment