Commit 3e150d2e authored by andrei.dincu's avatar andrei.dincu
Browse files

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

Issue #2249723 by andrei.dincu: Replace drupal_save_session() with Drupal::service()->save() in xmlsitemap.module
parent 4557f09f
......@@ -1293,7 +1293,7 @@ function xmlsitemap_switch_user($new_user = NULL) {
// Restore the original user.
$user = $user_original;
$user_original = NULL;
drupal_save_session(TRUE);
\Drupal::service('session_manager')->save();
}
else {
return FALSE;
......@@ -1311,7 +1311,7 @@ function xmlsitemap_switch_user($new_user = NULL) {
// Backup the original user object.
if (!isset($user_original)) {
$user_original = $user;
drupal_save_session(FALSE);
\Drupal::service('session_manager')->save();
}
$user = $new_user;
......@@ -1320,7 +1320,7 @@ function xmlsitemap_switch_user($new_user = NULL) {
// Backup the original user object.
if (!isset($user_original)) {
$user_original = $user;
drupal_save_session(FALSE);
\Drupal::service('session_manager')->save();
}
$user = $new_user;
......
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