Skip to content

Commit

Permalink
#1342 Replaces deprecated functions
Browse files Browse the repository at this point in the history
  • Loading branch information
timurtripp committed Sep 25, 2024
1 parent 1726727 commit 73985bc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions boulder_base.theme
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,9 @@ function boulder_base_preprocess_page(array &$variables) {
$variables['ucb_heading_font'] = theme_get_setting('ucb_heading_font');
$useCustomLogo = theme_get_setting('ucb_use_custom_logo');
if ($useCustomLogo) {
$logoDarkURL = file_create_url(theme_get_setting('ucb_custom_logo_dark_path'));
$logoLightURL = file_create_url(theme_get_setting('ucb_custom_logo_light_path'));
$fileUrlGenerator = \Drupal::service('file_url_generator');
$logoDarkURL = $fileUrlGenerator->generateAbsoluteString(theme_get_setting('ucb_custom_logo_dark_path'));
$logoLightURL = $fileUrlGenerator->generateAbsoluteString(theme_get_setting('ucb_custom_logo_light_path'));
$variables['ucb_custom_logo'] = [
'dark_url' => $logoDarkURL,
'light_url' => $logoLightURL,
Expand Down

0 comments on commit 73985bc

Please sign in to comment.