Skip to content
Snippets Groups Projects
Commit 17bca8cf authored by João Ventura's avatar João Ventura Committed by João Ventura
Browse files

Issue #3296924 by jcnventura, Project Update Bot, EricVL: Automated Drupal 10 compatibility fixes

parent c6d46f09
No related branches found
No related tags found
No related merge requests found
......@@ -63,7 +63,7 @@ function danland_preprocess_page(&$variables) {
$variables['danland_bottom_b']['class'][] = 'in' . $bottom_b;
$mask = '/\.(?:jp[e]?g|gif|png)$/i';
$files = \Drupal::service('file_system')->scanDirectory(drupal_get_path('theme', 'danland') . '/images/slideshows', $mask);
$files = \Drupal::service('file_system')->scanDirectory(\Drupal::service('extension.list.theme')->getPath('danland') . '/images/slideshows', $mask);
ksort($files);
$variables['files'] = $files;
$variables['slideshow_display'] = theme_get_setting('slideshow_display', 'danland');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment