Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
project
xmlsitemap
Commits
cf66d052
Commit
cf66d052
authored
Jan 23, 2010
by
Dave Reid
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
by Dave Reid: Front page path is always normalized in D7.
parent
32c1dd8b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
xmlsitemap.module
xmlsitemap.module
+1
-1
No files found.
xmlsitemap.module
View file @
cf66d052
...
...
@@ -173,7 +173,7 @@ function xmlsitemap_xmlsitemap_links() {
*/
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'
]
=
xmlsitemap_var
(
'frontpage_priority'
);
$link
[
'changefreq'
]
=
xmlsitemap_var
(
'frontpage_changefreq'
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment