CauseFX пре 4 година
родитељ
комит
df24a4595c
2 измењених фајлова са 13821 додато и 0 уклоњено
  1. 13817 0
      api/demo_data/calendar/calendar.json
  2. 4 0
      api/homepage/calendar.php

Разлика између датотеке није приказан због своје велике величине
+ 13817 - 0
api/demo_data/calendar/calendar.json


+ 4 - 0
api/homepage/calendar.php

@@ -87,6 +87,10 @@ trait CalendarHomepageItem
 	
 	public function getCalendar()
 	{
+		if ($this->demo) {
+			// for now, we will return all data - soon we will break out between all services
+			return $this->demoData('calendar/calendar.json');
+		}
 		$startDate = date('Y-m-d', strtotime("-" . $this->config['calendarStart'] . " days"));
 		$endDate = date('Y-m-d', strtotime("+" . $this->config['calendarEnd'] . " days"));
 		$icalCalendarSources = array();

Неке датотеке нису приказане због велике количине промена