Commit 4a308562 authored by Dave Reid's avatar Dave Reid

Fixed the site_frontpage variable is always trusted to be an internal path,...

Fixed the site_frontpage variable is always trusted to be an internal path, and drupal_get_normal_path() is unnecessary.
parent b3fd11d7
......@@ -247,7 +247,7 @@ function xmlsitemap_link_frontpage_settings(&$form) {
*/
function xmlsitemap_xmlsitemap_link_alter(&$link) {
// Alter the frontpage priority.
if ($link['type'] == 'frontpage' || $link['loc'] == '' || $link['loc'] == drupal_get_normal_path(variable_get('site_frontpage', 'node'))) {
if ($link['type'] == 'frontpage' || $link['loc'] == '' || $link['loc'] == variable_get('site_frontpage', 'node')) {
$link['priority'] = variable_get('xmlsitemap_frontpage_priority', 1.0);
$link['changefreq'] = variable_get('xmlsitemap_frontpage_changefreq', XMLSITEMAP_FREQUENCY_DAILY);
}
......
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