Commit f75c4cff authored by git's avatar git Committed by pifagor

Issue #3099680 by VadymK, voleger, Dave Reid, alex_optim, pifagor: Replace...

Issue #3099680 by VadymK, voleger, Dave Reid, alex_optim, pifagor: Replace deprecated file_default_scheme()
parent 363aec1f
......@@ -2,9 +2,8 @@ name: XML Sitemap
type: module
description: 'Creates an XML sitemap conforming to the <a href="http://sitemaps.org/">sitemaps.org protocol</a>.'
package: 'XML Sitemap'
core: 8.x
core_version_requirement: ^8 || ^9
core_version_requirement: ^8.8 || ^9
configure: xmlsitemap.admin_search
test_dependencies:
- drupal:system (>= 8.7)
- drupal:system (>= 8.8.0)
- robotstxt:robotstxt
......@@ -2306,7 +2306,7 @@ function xmlsitemap_transfer_file(Response $response, $uri, array $headers) {
$content = '';
// Attempt to increase time to transfer file.
Environment::setTimeLimit(240);
$scheme = file_default_scheme();
$scheme = \Drupal::config('system.file')->get('default_scheme');
// Transfer file in 16 KB chunks to save memory usage.
if ($scheme && \Drupal::service('file_system')->validScheme($scheme) && $fd = fopen($uri, 'rb')) {
while (!feof($fd)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment