diff --git a/core/modules/update/lib/Drupal/update/UpdateFetchManager.php b/core/modules/update/lib/Drupal/update/UpdateFetchManager.php index 324b71b..1282a50 100644 --- a/core/modules/update/lib/Drupal/update/UpdateFetchManager.php +++ b/core/modules/update/lib/Drupal/update/UpdateFetchManager.php @@ -127,7 +127,7 @@ public function processFetchTask($project) { ->setWithExpire('fetch_failures', $fail, $request_time_difference + (60 * 5)); // Whether this worked or not, we did just (try to) check for updates. - state()->set('update.last_check', REQUEST_TIME + $request_time_difference); + \Drupal::state()->set('update.last_check', REQUEST_TIME + $request_time_difference); // Now that we processed the fetch task for this project, clear out the // record for this task so we're willing to fetch again. diff --git a/core/modules/update/update.compare.inc b/core/modules/update/update.compare.inc index aef612a..26bd09b 100644 --- a/core/modules/update/update.compare.inc +++ b/core/modules/update/update.compare.inc @@ -87,7 +87,7 @@ function update_get_projects() { * @see update_get_projects() */ function update_process_info_list(&$projects, $list, $project_type, $status, $additional_whitelist = array()) { - return \Drupal::service('update.compare')->processInfoList($projects, $list, $project_type, $status, $additional_whitelist = array()); + return \Drupal::service('update.compare')->processInfoList($projects, $list, $project_type, $status, $additional_whitelist); } /**