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