dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "Drop ParserLimitReport, deprecated in 1.22"
[lhc/web/wiklou.git]
/
maintenance
/
generateSitemap.php
diff --git
a/maintenance/generateSitemap.php
b/maintenance/generateSitemap.php
index
70fdebf
..
dc1de4f
100644
(file)
--- a/
maintenance/generateSitemap.php
+++ b/
maintenance/generateSitemap.php
@@
-485,7
+485,9
@@
class GenerateSitemap extends Maintenance {
*/
function indexEntry( $filename ) {
return "\t<sitemap>\n" .
*/
function indexEntry( $filename ) {
return "\t<sitemap>\n" .
- "\t\t<loc>{$this->urlpath}$filename</loc>\n" .
+ "\t\t<loc>" . wfGetServerUrl( PROTO_CANONICAL ) .
+ ( substr( $this->urlpath, 0, 1 ) === "/" ? "" : "/" ) .
+ "{$this->urlpath}$filename</loc>\n" .
"\t\t<lastmod>{$this->timestamp}</lastmod>\n" .
"\t</sitemap>\n";
}
"\t\t<lastmod>{$this->timestamp}</lastmod>\n" .
"\t</sitemap>\n";
}