From f41fd8762420884b35c416272b5d87417295068c Mon Sep 17 00:00:00 2001 From: Will Rossiter Date: Wed, 7 Nov 2012 19:47:18 +1300 Subject: [PATCH] FIX: fix change freq not showing up in form. (Fixes: #27) --- code/GoogleSitemapDecorator.php | 2 +- templates/GoogleSitemap.ss | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 %>