Commit 40b729c3 authored by Andrii Podanenko's avatar Andrii Podanenko Committed by Avi Schwab
Browse files

Issue #3265284: Logo path points to old location

parent 6c412a62
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -6,7 +6,7 @@ features:
  favicon: true
  node_user_picture: true
logo:
  path: profiles/contrib/openy/themes/openy_themes/openy_carnation/dist/img/logo-white.png
  path: themes/contrib/openy_carnation/dist/img/logo-white.png
  url: ''
  use_default: false
openy_carnation_camp_section_logo: {  }
+14 −0
Original line number Diff line number Diff line
<?php

/**
 * Update default logo path.
 */
function openy_carnation_update_8005() {
  $config = \Drupal::service('config.factory')->getEditable('openy_carnation.settings');
  $curr = $config->get('logo');
  if ($curr['path'] == 'profiles/contrib/openy/themes/openy_themes/openy_carnation/dist/img/logo-white.png') {
    $curr['path'] = 'themes/contrib/openy_carnation/dist/img/logo-white.png';
    $config->set('logo', $curr);
    $config->save();
  }
}