Fix sitemap
This commit is contained in:
parent
54c90059ff
commit
ae595d8545
@ -2335,8 +2335,8 @@ if ($action == 'generatesitemaps' && $usercanedit) {
|
|||||||
if ($tmpshortlangcode != $shortlangcode) {
|
if ($tmpshortlangcode != $shortlangcode) {
|
||||||
$xhtmllink = $domtree->createElement('xhtml:link', '');
|
$xhtmllink = $domtree->createElement('xhtml:link', '');
|
||||||
$xhtmllink->setAttribute("rel", "alternante");
|
$xhtmllink->setAttribute("rel", "alternante");
|
||||||
$xhtmllink->setAttribute("hreflang", "'.$tmpshortlangcode.'");
|
$xhtmllink->setAttribute("hreflang", $tmpshortlangcode);
|
||||||
$xhtmllink->setAttribute("href", "'.$pageurl.'");
|
$xhtmllink->setAttribute("href", $domainname.'/'.$tmppage->pageurl);
|
||||||
$url->appendChild($xhtmllink);
|
$url->appendChild($xhtmllink);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -2356,8 +2356,8 @@ if ($action == 'generatesitemaps' && $usercanedit) {
|
|||||||
if ($tmpshortlangcode != $shortlangcode) {
|
if ($tmpshortlangcode != $shortlangcode) {
|
||||||
$xhtmllink = $domtree->createElement('xhtml:link', '');
|
$xhtmllink = $domtree->createElement('xhtml:link', '');
|
||||||
$xhtmllink->setAttribute("rel", "alternante");
|
$xhtmllink->setAttribute("rel", "alternante");
|
||||||
$xhtmllink->setAttribute("hreflang", "'.$tmpshortlangcode.'");
|
$xhtmllink->setAttribute("hreflang", $tmpshortlangcode);
|
||||||
$xhtmllink->setAttribute("href", "'.$pageurl.'");
|
$xhtmllink->setAttribute("href", $domainname.'/'.$objhastrans->pageurl);
|
||||||
$url->appendChild($xhtmllink);
|
$url->appendChild($xhtmllink);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -2369,8 +2369,8 @@ if ($action == 'generatesitemaps' && $usercanedit) {
|
|||||||
// Add myself
|
// Add myself
|
||||||
$xhtmllink = $domtree->createElement('xhtml:link', '');
|
$xhtmllink = $domtree->createElement('xhtml:link', '');
|
||||||
$xhtmllink->setAttribute("rel", "alternante");
|
$xhtmllink->setAttribute("rel", "alternante");
|
||||||
$xhtmllink->setAttribute("hreflang", "'.$shortlang.'");
|
$xhtmllink->setAttribute("hreflang", $shortlang);
|
||||||
$xhtmllink->setAttribute("href", "'.$pageurl.'");
|
$xhtmllink->setAttribute("href", $domainname.'/'.$pageurl);
|
||||||
$url->appendChild($xhtmllink);
|
$url->appendChild($xhtmllink);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user