From c7558c4111741bd90ce0ccef6bbc68031427ce14 Mon Sep 17 00:00:00 2001 From: catch <catch@35733.no-reply.drupal.org> Date: Fri, 28 Aug 2020 10:43:43 +0100 Subject: [PATCH] Issue #3167599 by shetpooja04, jijojoseph_zyxware: Unused variable $frequency in locale module, locale.module --- core/modules/locale/locale.module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/modules/locale/locale.module b/core/modules/locale/locale.module index 71e694171037..18f6c04782bc 100644 --- a/core/modules/locale/locale.module +++ b/core/modules/locale/locale.module @@ -358,7 +358,7 @@ function locale_cron() { // Update translations only when an update frequency was set by the admin // and a translatable language was set. // Update tasks are added to the queue here but processed by Drupal's cron. - if ($frequency = \Drupal::config('locale.settings')->get('translation.update_interval_days') && locale_translatable_language_list()) { + if (\Drupal::config('locale.settings')->get('translation.update_interval_days') && locale_translatable_language_list()) { module_load_include('translation.inc', 'locale'); locale_cron_fill_queue(); } -- GitLab