Commit ae7e6b4a authored by andrei.dincu's avatar andrei.dincu

Issue #2249723 by andrei.dincu: Replace drupal_hash_base64() with...

Issue #2249723 by andrei.dincu: Replace drupal_hash_base64() with Drupal\Component\Utility\Crypt::hashBase64()
parent f71a634a
......@@ -8,6 +8,7 @@
* @file
* Main file for the xmlsitemap module.
*/
use Drupal\Component\Utility\Crypt;
/**
* The maximum number of links in one sitemap chunk file.
......@@ -497,7 +498,7 @@ function xmlsitemap_sitemap_get_max_filesize(stdClass $sitemap) {
function xmlsitemap_sitemap_get_context_hash(array &$context) {
asort($context);
return drupal_hash_base64(serialize($context));
return Crypt::hashBase64(serialize($context));
}
/**
......
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