diff --git a/hdbt.theme b/hdbt.theme index 0999df36b..b95dc6822 100644 --- a/hdbt.theme +++ b/hdbt.theme @@ -475,9 +475,9 @@ function hdbt_preprocess_feed_icon(&$variables): void { return; } - $variables['title'] = match(strtolower($variables['title'])) { - 'news', 'nyheter', 'uutiset' => t('all news', [], ['context' => 'Feed icon altered title']) - }; + if (in_array(strtolower($variables['title']), ['news', 'nyheter', 'uutiset'])) { + $variables['title'] = t('all news', [], ['context' => 'Feed icon altered title']); + } } /**