aboutsummaryrefslogtreecommitdiff
path: root/src/bdrem/Source
diff options
context:
space:
mode:
Diffstat (limited to 'src/bdrem/Source')
-rw-r--r--src/bdrem/Source/Bdf.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bdrem/Source/Bdf.php b/src/bdrem/Source/Bdf.php
index e8208eb..f38e30f 100644
--- a/src/bdrem/Source/Bdf.php
+++ b/src/bdrem/Source/Bdf.php
@@ -21,7 +21,7 @@ class Source_Bdf
/**
* @param string $strDate Date the events shall be found for, YYYY-MM-DD
*/
- public function getEvents($strDate, $nDaysBefore, $nDaysAfter)
+ public function getEvents($strDate, $nDaysPrev, $nDaysNext)
{
$x = simplexml_load_file($this->filename);
@@ -38,7 +38,7 @@ class Source_Bdf
(string) $xPerson->event,
$date
);
- if ($event->isWithin($strDate, $nDaysBefore, $nDaysAfter)) {
+ if ($event->isWithin($strDate, $nDaysPrev, $nDaysNext)) {
$arEvents[] = $event;
}
}