diff --git a/code/GoogleSitemapDecorator.php b/code/GoogleSitemapDecorator.php index b42fb58..34de0f4 100644 --- a/code/GoogleSitemapDecorator.php +++ b/code/GoogleSitemapDecorator.php @@ -105,7 +105,7 @@ class GoogleSitemapSiteTreeDecorator extends DataExtension { * * @see http://support.google.com/webmasters/bin/answer.py?hl=en&answer=183668&topic=8476&ctx=topic * - * @return void + * @return SS_Datetime */ public function getChangeFrequency() { $date = date('Y-m-d H:i:s'); diff --git a/templates/GoogleSitemap.ss b/templates/GoogleSitemap.ss index ce8d59a..ee205a1 100644 --- a/templates/GoogleSitemap.ss +++ b/templates/GoogleSitemap.ss @@ -5,7 +5,7 @@ $AbsoluteLink <% if $LastEdited %>$LastEdited.Format(c)<% end_if %> - <% if $ChangeFreq %>$ChangeFreq<% end_if %> + <% if $ChangeFrequency %>$ChangeFrequency<% end_if %> <% if $Priority %>$Priority<% end_if %> <% end_loop %>