@@ -1718,186 +1718,186 @@ |
||
1718 | 1718 | // Loop through the entire recurrence range of dates, and check for each occurrence whether it is in the view range. |
1719 | 1719 | |
1720 | 1720 | switch ($this->recur['type']) { |
1721 | - case 10: |
|
1722 | - // Daily |
|
1723 | - if ($this->recur['everyn'] <= 0) { |
|
1724 | - $this->recur['everyn'] = 1440; |
|
1725 | - } |
|
1726 | - |
|
1727 | - if (0 == $this->recur['subtype']) { |
|
1728 | - // Every Nth day |
|
1729 | - for ($now = $daystart; $now <= $dayend && (0 == $limit || count($items) < $limit); $now += 60 * $this->recur['everyn']) { |
|
1730 | - $this->processOccurrenceItem($items, $start, $end, $now, $this->recur['startocc'], $this->recur['endocc'], $this->tz, $remindersonly); |
|
1721 | + case 10: |
|
1722 | + // Daily |
|
1723 | + if ($this->recur['everyn'] <= 0) { |
|
1724 | + $this->recur['everyn'] = 1440; |
|
1731 | 1725 | } |
1732 | - } else { |
|
1733 | - // Every workday |
|
1734 | - for ($now = $daystart; $now <= $dayend && (0 == $limit || count($items) < $limit); $now += 60 * 1440) { |
|
1735 | - $nowtime = $this->gmtime($now); |
|
1736 | - if ($nowtime['tm_wday'] > 0 && $nowtime['tm_wday'] < 6) { // only add items in the given timespace |
|
1726 | + |
|
1727 | + if (0 == $this->recur['subtype']) { |
|
1728 | + // Every Nth day |
|
1729 | + for ($now = $daystart; $now <= $dayend && (0 == $limit || count($items) < $limit); $now += 60 * $this->recur['everyn']) { |
|
1737 | 1730 | $this->processOccurrenceItem($items, $start, $end, $now, $this->recur['startocc'], $this->recur['endocc'], $this->tz, $remindersonly); |
1738 | 1731 | } |
1732 | + } else { |
|
1733 | + // Every workday |
|
1734 | + for ($now = $daystart; $now <= $dayend && (0 == $limit || count($items) < $limit); $now += 60 * 1440) { |
|
1735 | + $nowtime = $this->gmtime($now); |
|
1736 | + if ($nowtime['tm_wday'] > 0 && $nowtime['tm_wday'] < 6) { // only add items in the given timespace |
|
1737 | + $this->processOccurrenceItem($items, $start, $end, $now, $this->recur['startocc'], $this->recur['endocc'], $this->tz, $remindersonly); |
|
1738 | + } |
|
1739 | + } |
|
1739 | 1740 | } |
1740 | - } |
|
1741 | 1741 | |
1742 | - break; |
|
1743 | - |
|
1744 | - case 11: |
|
1745 | - // Weekly |
|
1746 | - if ($this->recur['everyn'] <= 0) { |
|
1747 | - $this->recur['everyn'] = 1; |
|
1748 | - } |
|
1742 | + break; |
|
1749 | 1743 | |
1750 | - // If sliding flag is set then move to 'n' weeks |
|
1751 | - if ($this->recur['regen']) { |
|
1752 | - $daystart += (60 * 60 * 24 * 7 * $this->recur['everyn']); |
|
1753 | - } |
|
1744 | + case 11: |
|
1745 | + // Weekly |
|
1746 | + if ($this->recur['everyn'] <= 0) { |
|
1747 | + $this->recur['everyn'] = 1; |
|
1748 | + } |
|
1754 | 1749 | |
1755 | - for ($now = $daystart; $now <= $dayend && (0 == $limit || count($items) < $limit); $now += (60 * 60 * 24 * 7 * $this->recur['everyn'])) { |
|
1750 | + // If sliding flag is set then move to 'n' weeks |
|
1756 | 1751 | if ($this->recur['regen']) { |
1757 | - $this->processOccurrenceItem($items, $start, $end, $now, $this->recur['startocc'], $this->recur['endocc'], $this->tz, $remindersonly); |
|
1758 | - } else { |
|
1759 | - // Loop through the whole following week to the first occurrence of the week, add each day that is specified |
|
1760 | - for ($wday = 0; $wday < 7; ++$wday) { |
|
1761 | - $daynow = $now + $wday * 60 * 60 * 24; |
|
1762 | - // checks weather the next coming day in recurring pattern is less than or equal to end day of the recurring item |
|
1763 | - if ($daynow <= $dayend) { |
|
1764 | - $nowtime = $this->gmtime($daynow); // Get the weekday of the current day |
|
1765 | - if (($this->recur['weekdays'] & (1 << $nowtime['tm_wday']))) { // Selected ? |
|
1766 | - $this->processOccurrenceItem($items, $start, $end, $daynow, $this->recur['startocc'], $this->recur['endocc'], $this->tz, $remindersonly); |
|
1752 | + $daystart += (60 * 60 * 24 * 7 * $this->recur['everyn']); |
|
1753 | + } |
|
1754 | + |
|
1755 | + for ($now = $daystart; $now <= $dayend && (0 == $limit || count($items) < $limit); $now += (60 * 60 * 24 * 7 * $this->recur['everyn'])) { |
|
1756 | + if ($this->recur['regen']) { |
|
1757 | + $this->processOccurrenceItem($items, $start, $end, $now, $this->recur['startocc'], $this->recur['endocc'], $this->tz, $remindersonly); |
|
1758 | + } else { |
|
1759 | + // Loop through the whole following week to the first occurrence of the week, add each day that is specified |
|
1760 | + for ($wday = 0; $wday < 7; ++$wday) { |
|
1761 | + $daynow = $now + $wday * 60 * 60 * 24; |
|
1762 | + // checks weather the next coming day in recurring pattern is less than or equal to end day of the recurring item |
|
1763 | + if ($daynow <= $dayend) { |
|
1764 | + $nowtime = $this->gmtime($daynow); // Get the weekday of the current day |
|
1765 | + if (($this->recur['weekdays'] & (1 << $nowtime['tm_wday']))) { // Selected ? |
|
1766 | + $this->processOccurrenceItem($items, $start, $end, $daynow, $this->recur['startocc'], $this->recur['endocc'], $this->tz, $remindersonly); |
|
1767 | + } |
|
1767 | 1768 | } |
1768 | 1769 | } |
1769 | 1770 | } |
1770 | 1771 | } |
1771 | - } |
|
1772 | 1772 | |
1773 | - break; |
|
1774 | - |
|
1775 | - case 12: |
|
1776 | - // Monthly |
|
1777 | - if ($this->recur['everyn'] <= 0) { |
|
1778 | - $this->recur['everyn'] = 1; |
|
1779 | - } |
|
1773 | + break; |
|
1780 | 1774 | |
1781 | - // Loop through all months from start to end of occurrence, starting at beginning of first month |
|
1782 | - for ($now = $this->monthStartOf($daystart); $now <= $dayend && (0 == $limit || count($items) < $limit); $now += $this->daysInMonth($now, $this->recur['everyn']) * 24 * 60 * 60) { |
|
1783 | - if (isset($this->recur['monthday']) && ('undefined' != $this->recur['monthday']) && !$this->recur['regen']) { // Day M of every N months |
|
1784 | - $difference = 1; |
|
1785 | - if ($this->daysInMonth($now, $this->recur['everyn']) < $this->recur['monthday']) { |
|
1786 | - $difference = $this->recur['monthday'] - $this->daysInMonth($now, $this->recur['everyn']) + 1; |
|
1787 | - } |
|
1788 | - $daynow = $now + (($this->recur['monthday'] - $difference) * 24 * 60 * 60); |
|
1789 | - // checks weather the next coming day in recurrence pattern is less than or equal to end day of the recurring item |
|
1790 | - if ($daynow <= $dayend) { |
|
1791 | - $this->processOccurrenceItem($items, $start, $end, $daynow, $this->recur['startocc'], $this->recur['endocc'], $this->tz, $remindersonly); |
|
1792 | - } |
|
1793 | - } elseif (isset($this->recur['nday'], $this->recur['weekdays'])) { // Nth [weekday] of every N months |
|
1794 | - // Sanitize input |
|
1795 | - if (0 == $this->recur['weekdays']) { |
|
1796 | - $this->recur['weekdays'] = 1; |
|
1797 | - } |
|
1775 | + case 12: |
|
1776 | + // Monthly |
|
1777 | + if ($this->recur['everyn'] <= 0) { |
|
1778 | + $this->recur['everyn'] = 1; |
|
1779 | + } |
|
1798 | 1780 | |
1799 | - // If nday is not set to the last day in the month |
|
1800 | - if ($this->recur['nday'] < 5) { |
|
1801 | - // keep the track of no. of time correct selection pattern(like 2nd weekday, 4th fiday, etc.)is matched |
|
1802 | - $ndaycounter = 0; |
|
1803 | - // Find matching weekday in this month |
|
1804 | - for ($day = 0, $total = $this->daysInMonth($now, 1); $day < $total; ++$day) { |
|
1805 | - $daynow = $now + $day * 60 * 60 * 24; |
|
1806 | - $nowtime = $this->gmtime($daynow); // Get the weekday of the current day |
|
1781 | + // Loop through all months from start to end of occurrence, starting at beginning of first month |
|
1782 | + for ($now = $this->monthStartOf($daystart); $now <= $dayend && (0 == $limit || count($items) < $limit); $now += $this->daysInMonth($now, $this->recur['everyn']) * 24 * 60 * 60) { |
|
1783 | + if (isset($this->recur['monthday']) && ('undefined' != $this->recur['monthday']) && !$this->recur['regen']) { // Day M of every N months |
|
1784 | + $difference = 1; |
|
1785 | + if ($this->daysInMonth($now, $this->recur['everyn']) < $this->recur['monthday']) { |
|
1786 | + $difference = $this->recur['monthday'] - $this->daysInMonth($now, $this->recur['everyn']) + 1; |
|
1787 | + } |
|
1788 | + $daynow = $now + (($this->recur['monthday'] - $difference) * 24 * 60 * 60); |
|
1789 | + // checks weather the next coming day in recurrence pattern is less than or equal to end day of the recurring item |
|
1790 | + if ($daynow <= $dayend) { |
|
1791 | + $this->processOccurrenceItem($items, $start, $end, $daynow, $this->recur['startocc'], $this->recur['endocc'], $this->tz, $remindersonly); |
|
1792 | + } |
|
1793 | + } elseif (isset($this->recur['nday'], $this->recur['weekdays'])) { // Nth [weekday] of every N months |
|
1794 | + // Sanitize input |
|
1795 | + if (0 == $this->recur['weekdays']) { |
|
1796 | + $this->recur['weekdays'] = 1; |
|
1797 | + } |
|
1807 | 1798 | |
1808 | - if ($this->recur['weekdays'] & (1 << $nowtime['tm_wday'])) { // Selected ? |
|
1809 | - ++$ndaycounter; |
|
1810 | - } |
|
1811 | - // check the selected pattern is same as asked Nth weekday,If so set the firstday |
|
1812 | - if ($this->recur['nday'] == $ndaycounter) { |
|
1813 | - $firstday = $day; |
|
1799 | + // If nday is not set to the last day in the month |
|
1800 | + if ($this->recur['nday'] < 5) { |
|
1801 | + // keep the track of no. of time correct selection pattern(like 2nd weekday, 4th fiday, etc.)is matched |
|
1802 | + $ndaycounter = 0; |
|
1803 | + // Find matching weekday in this month |
|
1804 | + for ($day = 0, $total = $this->daysInMonth($now, 1); $day < $total; ++$day) { |
|
1805 | + $daynow = $now + $day * 60 * 60 * 24; |
|
1806 | + $nowtime = $this->gmtime($daynow); // Get the weekday of the current day |
|
1807 | + |
|
1808 | + if ($this->recur['weekdays'] & (1 << $nowtime['tm_wday'])) { // Selected ? |
|
1809 | + ++$ndaycounter; |
|
1810 | + } |
|
1811 | + // check the selected pattern is same as asked Nth weekday,If so set the firstday |
|
1812 | + if ($this->recur['nday'] == $ndaycounter) { |
|
1813 | + $firstday = $day; |
|
1814 | 1814 | |
1815 | - break; |
|
1815 | + break; |
|
1816 | + } |
|
1816 | 1817 | } |
1817 | - } |
|
1818 | - // $firstday is the day of the month on which the asked pattern of nth weekday matches |
|
1819 | - $daynow = $now + $firstday * 60 * 60 * 24; |
|
1820 | - } else { |
|
1821 | - // Find last day in the month ($now is the firstday of the month) |
|
1822 | - $NumDaysInMonth = $this->daysInMonth($now, 1); |
|
1823 | - $daynow = $now + (($NumDaysInMonth - 1) * 24 * 60 * 60); |
|
1818 | + // $firstday is the day of the month on which the asked pattern of nth weekday matches |
|
1819 | + $daynow = $now + $firstday * 60 * 60 * 24; |
|
1820 | + } else { |
|
1821 | + // Find last day in the month ($now is the firstday of the month) |
|
1822 | + $NumDaysInMonth = $this->daysInMonth($now, 1); |
|
1823 | + $daynow = $now + (($NumDaysInMonth - 1) * 24 * 60 * 60); |
|
1824 | 1824 | |
1825 | - $nowtime = $this->gmtime($daynow); |
|
1826 | - while (($this->recur['weekdays'] & (1 << $nowtime['tm_wday'])) == 0) { |
|
1827 | - $daynow -= 86400; |
|
1828 | 1825 | $nowtime = $this->gmtime($daynow); |
1826 | + while (($this->recur['weekdays'] & (1 << $nowtime['tm_wday'])) == 0) { |
|
1827 | + $daynow -= 86400; |
|
1828 | + $nowtime = $this->gmtime($daynow); |
|
1829 | + } |
|
1829 | 1830 | } |
1830 | - } |
|
1831 | 1831 | |
1832 | - /* |
|
1832 | + /* |
|
1833 | 1833 | * checks weather the next coming day in recurrence pattern is less than or equal to end day of the * recurring item.Also check weather the coming day in recurrence pattern is greater than or equal to start * of recurring pattern, so that appointment that fall under the recurrence range are only displayed. |
1834 | 1834 | */ |
1835 | - if ($daynow <= $dayend && $daynow >= $daystart) { |
|
1836 | - $this->processOccurrenceItem($items, $start, $end, $daynow, $this->recur['startocc'], $this->recur['endocc'], $this->tz, $remindersonly); |
|
1837 | - } |
|
1838 | - } elseif ($this->recur['regen']) { |
|
1839 | - $next_month_start = $now + ($this->daysInMonth($now, 1) * 24 * 60 * 60); |
|
1840 | - $now = $daystart + ($this->daysInMonth($next_month_start, $this->recur['everyn']) * 24 * 60 * 60); |
|
1835 | + if ($daynow <= $dayend && $daynow >= $daystart) { |
|
1836 | + $this->processOccurrenceItem($items, $start, $end, $daynow, $this->recur['startocc'], $this->recur['endocc'], $this->tz, $remindersonly); |
|
1837 | + } |
|
1838 | + } elseif ($this->recur['regen']) { |
|
1839 | + $next_month_start = $now + ($this->daysInMonth($now, 1) * 24 * 60 * 60); |
|
1840 | + $now = $daystart + ($this->daysInMonth($next_month_start, $this->recur['everyn']) * 24 * 60 * 60); |
|
1841 | 1841 | |
1842 | - if ($now <= $dayend) { |
|
1843 | - $this->processOccurrenceItem($items, $daystart, $end, $now, $this->recur['startocc'], $this->recur['endocc'], $this->tz, $remindersonly); |
|
1842 | + if ($now <= $dayend) { |
|
1843 | + $this->processOccurrenceItem($items, $daystart, $end, $now, $this->recur['startocc'], $this->recur['endocc'], $this->tz, $remindersonly); |
|
1844 | + } |
|
1844 | 1845 | } |
1845 | 1846 | } |
1846 | - } |
|
1847 | 1847 | |
1848 | - break; |
|
1848 | + break; |
|
1849 | 1849 | |
1850 | - case 13: |
|
1851 | - // Yearly |
|
1852 | - if ($this->recur['everyn'] <= 0) { |
|
1853 | - $this->recur['everyn'] = 12; |
|
1854 | - } |
|
1850 | + case 13: |
|
1851 | + // Yearly |
|
1852 | + if ($this->recur['everyn'] <= 0) { |
|
1853 | + $this->recur['everyn'] = 12; |
|
1854 | + } |
|
1855 | 1855 | |
1856 | - for ($now = $this->yearStartOf($daystart); $now <= $dayend && (0 == $limit || count($items) < $limit); $now += $this->daysInMonth($now, $this->recur['everyn']) * 24 * 60 * 60) { |
|
1857 | - if (isset($this->recur['monthday']) && !$this->recur['regen']) { // same as monthly, but in a specific month |
|
1858 | - // recur["month"] is in minutes since the beginning of the year |
|
1859 | - $month = $this->monthOfYear($this->recur['month']); // $month is now month of year [0..11] |
|
1860 | - $monthday = $this->recur['monthday']; // $monthday is day of the month [1..31] |
|
1861 | - $monthstart = $now + $this->daysInMonth($now, $month) * 24 * 60 * 60; // $monthstart is the timestamp of the beginning of the month |
|
1862 | - if ($monthday > $this->daysInMonth($monthstart, 1)) { |
|
1863 | - $monthday = $this->daysInMonth($monthstart, 1); |
|
1864 | - } // Cap $monthday on month length (eg 28 feb instead of 29 feb) |
|
1865 | - $daynow = $monthstart + ($monthday - 1) * 24 * 60 * 60; |
|
1866 | - $this->processOccurrenceItem($items, $start, $end, $daynow, $this->recur['startocc'], $this->recur['endocc'], $this->tz, $remindersonly); |
|
1867 | - } elseif (isset($this->recur['nday'], $this->recur['weekdays'])) { // Nth [weekday] in month X of every N years |
|
1868 | - // Go the correct month |
|
1869 | - $monthnow = $now + $this->daysInMonth($now, $this->monthOfYear($this->recur['month'])) * 24 * 60 * 60; |
|
1870 | - |
|
1871 | - // Find first matching weekday in this month |
|
1872 | - for ($wday = 0; $wday < 7; ++$wday) { |
|
1873 | - $daynow = $monthnow + $wday * 60 * 60 * 24; |
|
1874 | - $nowtime = $this->gmtime($daynow); // Get the weekday of the current day |
|
1875 | - |
|
1876 | - if ($this->recur['weekdays'] & (1 << $nowtime['tm_wday'])) { // Selected ? |
|
1877 | - $firstday = $wday; |
|
1856 | + for ($now = $this->yearStartOf($daystart); $now <= $dayend && (0 == $limit || count($items) < $limit); $now += $this->daysInMonth($now, $this->recur['everyn']) * 24 * 60 * 60) { |
|
1857 | + if (isset($this->recur['monthday']) && !$this->recur['regen']) { // same as monthly, but in a specific month |
|
1858 | + // recur["month"] is in minutes since the beginning of the year |
|
1859 | + $month = $this->monthOfYear($this->recur['month']); // $month is now month of year [0..11] |
|
1860 | + $monthday = $this->recur['monthday']; // $monthday is day of the month [1..31] |
|
1861 | + $monthstart = $now + $this->daysInMonth($now, $month) * 24 * 60 * 60; // $monthstart is the timestamp of the beginning of the month |
|
1862 | + if ($monthday > $this->daysInMonth($monthstart, 1)) { |
|
1863 | + $monthday = $this->daysInMonth($monthstart, 1); |
|
1864 | + } // Cap $monthday on month length (eg 28 feb instead of 29 feb) |
|
1865 | + $daynow = $monthstart + ($monthday - 1) * 24 * 60 * 60; |
|
1866 | + $this->processOccurrenceItem($items, $start, $end, $daynow, $this->recur['startocc'], $this->recur['endocc'], $this->tz, $remindersonly); |
|
1867 | + } elseif (isset($this->recur['nday'], $this->recur['weekdays'])) { // Nth [weekday] in month X of every N years |
|
1868 | + // Go the correct month |
|
1869 | + $monthnow = $now + $this->daysInMonth($now, $this->monthOfYear($this->recur['month'])) * 24 * 60 * 60; |
|
1878 | 1870 | |
1879 | - break; |
|
1871 | + // Find first matching weekday in this month |
|
1872 | + for ($wday = 0; $wday < 7; ++$wday) { |
|
1873 | + $daynow = $monthnow + $wday * 60 * 60 * 24; |
|
1874 | + $nowtime = $this->gmtime($daynow); // Get the weekday of the current day |
|
1875 | + |
|
1876 | + if ($this->recur['weekdays'] & (1 << $nowtime['tm_wday'])) { // Selected ? |
|
1877 | + $firstday = $wday; |
|
1878 | + |
|
1879 | + break; |
|
1880 | + } |
|
1880 | 1881 | } |
1881 | - } |
|
1882 | 1882 | |
1883 | - // Same as above (monthly) |
|
1884 | - $daynow = $monthnow + ($firstday + ($this->recur['nday'] - 1) * 7) * 60 * 60 * 24; |
|
1883 | + // Same as above (monthly) |
|
1884 | + $daynow = $monthnow + ($firstday + ($this->recur['nday'] - 1) * 7) * 60 * 60 * 24; |
|
1885 | 1885 | |
1886 | - while ($this->monthStartOf($daynow) != $this->monthStartOf($monthnow)) { |
|
1887 | - $daynow -= 7 * 60 * 60 * 24; |
|
1888 | - } |
|
1886 | + while ($this->monthStartOf($daynow) != $this->monthStartOf($monthnow)) { |
|
1887 | + $daynow -= 7 * 60 * 60 * 24; |
|
1888 | + } |
|
1889 | 1889 | |
1890 | - $this->processOccurrenceItem($items, $start, $end, $daynow, $this->recur['startocc'], $this->recur['endocc'], $this->tz, $remindersonly); |
|
1891 | - } elseif ($this->recur['regen']) { |
|
1892 | - $year_starttime = $this->gmtime($now); |
|
1893 | - $is_next_leapyear = $this->isLeapYear($year_starttime['tm_year'] + 1900 + 1); // +1 next year |
|
1894 | - $now = $daystart + ($is_next_leapyear ? 31622400 /* Leap year in seconds */ : 31536000 /* year in seconds */); |
|
1890 | + $this->processOccurrenceItem($items, $start, $end, $daynow, $this->recur['startocc'], $this->recur['endocc'], $this->tz, $remindersonly); |
|
1891 | + } elseif ($this->recur['regen']) { |
|
1892 | + $year_starttime = $this->gmtime($now); |
|
1893 | + $is_next_leapyear = $this->isLeapYear($year_starttime['tm_year'] + 1900 + 1); // +1 next year |
|
1894 | + $now = $daystart + ($is_next_leapyear ? 31622400 /* Leap year in seconds */ : 31536000 /* year in seconds */); |
|
1895 | 1895 | |
1896 | - if ($now <= $dayend) { |
|
1897 | - $this->processOccurrenceItem($items, $daystart, $end, $now, $this->recur['startocc'], $this->recur['endocc'], $this->tz, $remindersonly); |
|
1896 | + if ($now <= $dayend) { |
|
1897 | + $this->processOccurrenceItem($items, $daystart, $end, $now, $this->recur['startocc'], $this->recur['endocc'], $this->tz, $remindersonly); |
|
1898 | + } |
|
1898 | 1899 | } |
1899 | 1900 | } |
1900 | - } |
|
1901 | 1901 | } |
1902 | 1902 | // to get all exception items |
1903 | 1903 | if (!empty($this->recur['changed_occurrences'])) { |
@@ -1890,7 +1890,7 @@ |
||
1890 | 1890 | $this->processOccurrenceItem($items, $start, $end, $daynow, $this->recur['startocc'], $this->recur['endocc'], $this->tz, $remindersonly); |
1891 | 1891 | } elseif ($this->recur['regen']) { |
1892 | 1892 | $year_starttime = $this->gmtime($now); |
1893 | - $is_next_leapyear = $this->isLeapYear($year_starttime['tm_year'] + 1900 + 1); // +1 next year |
|
1893 | + $is_next_leapyear = $this->isLeapYear($year_starttime['tm_year'] + 1900 + 1); // +1 next year |
|
1894 | 1894 | $now = $daystart + ($is_next_leapyear ? 31622400 /* Leap year in seconds */ : 31536000 /* year in seconds */); |
1895 | 1895 | |
1896 | 1896 | if ($now <= $dayend) { |
@@ -6,7 +6,7 @@ |
||
6 | 6 | * |
7 | 7 | */ |
8 | 8 | |
9 | - // First include all generally necessary classes |
|
9 | + // First include all generally necessary classes |
|
10 | 10 | require_once 'server/includes/bootstrap.php'; |
11 | 11 | |
12 | 12 | // Following classes are needed for grommunio.php |
@@ -404,7 +404,7 @@ |
||
404 | 404 | ]; |
405 | 405 | $fileDependencies[$filename] = [ |
406 | 406 | 'depends' => [], |
407 | - 'core' => $core, // Based on tag or on class or on file path? |
|
407 | + 'core' => $core, // Based on tag or on class or on file path? |
|
408 | 408 | ]; |
409 | 409 | |
410 | 410 | for ($j = 0, $lenJ = count($class[1]); $j < $lenJ; ++$j) { |
@@ -1,9 +1,9 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | - /** |
|
4 | - * Utility functions. |
|
5 | - */ |
|
6 | - require_once BASE_PATH . 'server/includes/exceptions/class.JSONException.php'; |
|
3 | + /** |
|
4 | + * Utility functions. |
|
5 | + */ |
|
6 | + require_once BASE_PATH . 'server/includes/exceptions/class.JSONException.php'; |
|
7 | 7 | |
8 | 8 | /** |
9 | 9 | * Function which reads the data stream. This data is send by the WebClient. |