Permalink
Browse files

Fixed php 7 issues

  • Loading branch information...
Stardog committed Mar 8, 2017
1 parent faad3d8 commit 8d046e69c8d9adeec209a9f6e34078fe58cd681c
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/pear/Calendar/Week.php
@@ -135,10 +135,10 @@ class Calendar_Week extends Calendar
*
* @access public
*/
- function Calendar_Week($y, $m, $d, $firstDay = null)
+ function __construct($y, $m, $d, $firstDay = null)
{
include_once CALENDAR_ROOT.'Table/Helper.php';
- Calendar::Calendar($y, $m, $d);
+ parent::__construct($y, $m, $d);
$this->firstDay = $this->defineFirstDayOfWeek($firstDay);
$this->tableHelper = new Calendar_Table_Helper($this, $this->firstDay);
$this->thisWeek = $this->tableHelper->getWeekStart($y, $m, $d, $this->firstDay);

0 comments on commit 8d046e6

Please sign in to comment.