X-Git-Url: https://git.cweiske.de/bdrem.git/blobdiff_plain/441c72bbf3d29be5c7f5eb0fd43ac267fe059c2f..95681cad57a3bb6198162d0e94dc8f700ced60af:/src/bdrem/Source/Bdf.php 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; } }