Skip to content

Commit

Permalink
Use DefaultFutureMonths in setDefaultView
Browse files Browse the repository at this point in the history
  • Loading branch information
jyrkij committed Mar 17, 2014
1 parent 842bbfd commit c3f614a
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 c3f614a

Please sign in to comment.