Changeset 57 for trunk/Modules/Meet/Import/Amblar.php
- Timestamp:
- May 27, 2020, 8:04:56 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/Meet/Import/Amblar.php
r41 r57 29 29 { 30 30 $Output = parent::Import(); 31 $this->AddTimeInterval = 24 * 60 * 60; 31 32 $Content = file_get_contents($this->URL); 32 33 … … 56 57 if ($Type == 'odpovězeno') continue; 57 58 $MeetItem->Time = trim(GetTextBetween($Item, '<span class="dwqa-date">', '</span>')); 58 if (mb_substr($MeetItem->Time, 0, 4) == 'před') 59 { 59 if (mb_substr($MeetItem->Time, 0, 4) == 'před') 60 { 60 61 $Parts = explode(' ', $MeetItem->Time); 61 62 if ($Parts[2] == 'hours') $MeetItem->Time = strtotime("-".$Parts[1]." hours"); … … 73 74 $MeetItem->Source = $this->Id; 74 75 $Output .= $this->ImportItem($MeetItem); 75 $this-> AddedCount += $MeetItem->AddIfNotExist(24 * 60 * 60);76 $this->MeetItems[] = $MeetItem; 76 77 } 77 78 return $Output;
Note:
See TracChangeset
for help on using the changeset viewer.