Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
xmlsitemap
Commits
7c40056b
Commit
7c40056b
authored
Feb 11, 2010
by
Dave Reid
Browse files
follow-up by Dave Reid: Fixed PHP notice when links have language equal to LANGUAGE_NONE.
parent
1435e326
Changes
1
Hide whitespace changes
Inline
Side-by-side
xmlsitemap.generate.inc
View file @
7c40056b
...
...
@@ -303,7 +303,7 @@ function xmlsitemap_generate_chunk($handle, &$status, $chunk, array $context) {
xmlsitemap_generate_chunk_header
(
'urlset'
,
$handle
,
$status
,
$context
);
while
(
$link
=
$links
->
fetchAssoc
())
{
$link
[
'language'
]
=
$link
[
'language'
]
?
xmlsitemap_language_load
(
$link
[
'language'
])
:
$url_options
[
'language'
];
$link
[
'language'
]
=
$link
[
'language'
]
!=
LANGUAGE_NONE
?
xmlsitemap_language_load
(
$link
[
'language'
])
:
$url_options
[
'language'
];
$link
[
'alias'
]
=
xmlsitemap_get_path_alias
(
$link
[
'loc'
],
$link
[
'language'
]
->
language
);
$link_url
=
url
(
$link
[
'alias'
],
array
(
'language'
=>
$link
[
'language'
])
+
$url_options
);
...
...
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