Commit 70dd6eb6 authored by Dave Reid's avatar Dave Reid

Issue #1109402 by David_Rothstein: Fixed aggressive variable renaming with...

Issue #1109402 by David_Rothstein: Fixed aggressive variable renaming with xmlsitemap_link_type_rename().
parent 8f834fce
......@@ -1041,7 +1041,7 @@ function xmlsitemap_link_type_rename($entity_old, $entity_new, $bundles = NULL)
$value = variable_get($variable);
variable_del($variable);
if (isset($value)) {
$variable_new = str_replace($entity_old, $entity_new, $variable);
$variable_new = str_replace('xmlsitemap_settings_' . $entity_old, 'xmlsitemap_settings_' . $entity_new, $variable);
variable_set($variable_new, $value);
}
}
......
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