From c3f614a82c519ec2c9673b02d85c591e1b8e6dbb Mon Sep 17 00:00:00 2001 From: Jyrki Lilja Date: Mon, 17 Mar 2014 15:04:33 +0200 Subject: [PATCH] Use DefaultFutureMonths in setDefaultView --- code/Calendar.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/Calendar.php b/code/Calendar.php index 880fb75..7c1df72 100755 --- a/code/Calendar.php +++ b/code/Calendar.php @@ -493,7 +493,7 @@ public function getView() { public function setDefaultView() { $this->view = "default"; $this->startDate = sfDate::getInstance(); - $this->endDate = sfDate::getInstance()->addMonth(6); + $this->endDate = sfDate::getInstance()->addMonth($this->DefaultFutureMonths); } public function setTodayView() {