Skip to content

Commit

Permalink
Merge pull request #40 from jyrkij/patch-1
Browse files Browse the repository at this point in the history
Use DefaultFutureMonths in setDefaultView
  • Loading branch information
unclecheese committed Mar 17, 2014
2 parents 842bbfd + c3f614a commit 03d679f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/Calendar.php
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 03d679f

Please sign in to comment.