Skip to content

Commit 83bfb37

Browse files
committed
VVZ-103-40624 Fixing mail logo
1 parent 2fe5042 commit 83bfb37

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

web/themes/custom/fds_ballerup_theme/fds_ballerup_theme.theme

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -73,11 +73,9 @@ function fds_ballerup_theme_preprocess_symfony_mailer_lite_email(&$variables) {
7373
$variables['theme_settings'] = $theme_settings;
7474

7575
// Header logo.
76-
if (!empty($theme_settings['language_logo']['header_logo__' . $language])) {
77-
$file = File::load($theme_settings['language_logo']['header_logo__' . $language]);
78-
if (!empty($file)) {
79-
$variables['logo_url'] = file_create_url($file->getFileUri());
80-
}
76+
$logo = theme_get_setting('logo');
77+
if (!empty( $logo ) && !empty($logo['url'])) {
78+
$variables['logo_url'] = $GLOBALS['base_url'] . $logo['url'];
8179
}
8280
}
8381

0 commit comments

Comments
 (0)