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
cd0bf3dd
Commit
cd0bf3dd
authored
Sep 28, 2017
by
RenatoG
Committed by
RenatoG
Sep 28, 2017
Browse files
Issue
#2912413
by RenatoG, drone.ah: sitemap.xml index missing <loc>
parent
757708f3
Changes
1
Show whitespace changes
Inline
Side-by-side
src/XmlSitemapIndexWriter.php
View file @
cd0bf3dd
...
...
@@ -55,7 +55,7 @@ class XmlSitemapIndexWriter extends XmlSitemapWriter {
for
(
$i
=
1
;
$i
<=
$this
->
sitemap
->
chunks
;
$i
++
)
{
$url_options
[
'query'
][
'page'
]
=
$i
;
$element
=
[
'loc'
=>
Url
::
fromRoute
(
'xmlsitemap.sitemap_xml'
,
[],
$url_options
),
'loc'
=>
Url
::
fromRoute
(
'xmlsitemap.sitemap_xml'
,
[],
$url_options
)
->
toString
()
,
// @todo Use the actual lastmod value of the chunk file.
'lastmod'
=>
gmdate
(
$lastmod_format
,
REQUEST_TIME
),
];
...
...
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