From 32fb5aa288d1ea6d2bed26f035d282f4c0a36737 Mon Sep 17 00:00:00 2001 From: Javier Martinez Fernandez Date: Thu, 10 Feb 2011 06:45:20 -0800 Subject: [PATCH] BYYEARNO doesn't exist in RFC 2445. I suppose that BYWEEKNO is the right specification. --- helpers/SG_iCal_Recurrence.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) mode change 100755 => 100644 helpers/SG_iCal_Recurrence.php diff --git a/helpers/SG_iCal_Recurrence.php b/helpers/SG_iCal_Recurrence.php old mode 100755 new mode 100644 index dd0ebb5..238e481 --- a/helpers/SG_iCal_Recurrence.php +++ b/helpers/SG_iCal_Recurrence.php @@ -28,7 +28,7 @@ class SG_iCal_Recurrence { protected $byday; protected $bymonthday; protected $byyearday; - protected $byyearno; + protected $byweekno; protected $bymonth; protected $bysetpos; @@ -40,7 +40,7 @@ class SG_iCal_Recurrence { */ protected $listProperties = array( 'bysecond', 'byminute', 'byhour', 'byday', 'bymonthday', - 'byyearday', 'byyearno', 'bymonth', 'bysetpos' + 'byyearday', 'byweekno', 'bymonth', 'bysetpos' ); /** @@ -188,11 +188,11 @@ class SG_iCal_Recurrence { } /** - * Corresponds to BYYEARNO in RFC 2445. + * Corresponds to BYWEEKNO in RFC 2445. * @return mixed string if the member has been set, false otherwise */ - public function getByYearNo() { - return $this->getMember('byyearno'); + public function getByWeekNo() { + return $this->getMember('byweekno'); } /**