@@ 41-43 (lines=3) @@ | ||
38 | { |
|
39 | $buffer = "\t".'<loc>'.$this->escape($url->getLoc()).'</loc>'."\n"; |
|
40 | ||
41 | if ($url->getLastmod() !== null) { |
|
42 | $buffer .= "\t".'<lastmod>'.$this->escape($url->getLastmod()).'</lastmod>'."\n"; |
|
43 | } |
|
44 | ||
45 | if ($url->getChangefreq() !== null) { |
|
46 | $buffer .= "\t".'<changefreq>'.$this->escape($url->getChangefreq()).'</changefreq>'."\n"; |
|
@@ 73-75 (lines=3) @@ | ||
70 | { |
|
71 | $buffer = "\t".'<loc>'.$this->escape($sitemapIndex->getLoc()).'</loc>'."\n"; |
|
72 | ||
73 | if ($sitemapIndex->getLastmod() !== null) { |
|
74 | $buffer .= "\t".'<lastmod>'.$this->escape($sitemapIndex->getLastmod()).'</lastmod>'."\n"; |
|
75 | } |
|
76 | ||
77 | return $buffer; |
|
78 | } |