Skip to content

Commit

Permalink
freetag 3.70.9: Avoid php warnings in RSS feed
Browse files Browse the repository at this point in the history
  • Loading branch information
onli committed Jan 18, 2025
1 parent da16610 commit 4c9cb57
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions serendipity_event_freetag/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
3.70.9: Avoid more warnings under PHP 8.2, thanks @bauigel

3.70.8: Avoid more warnings under PHP 8.2

3.70.7: Avoid deprecation warning under PHP 8.2
Expand Down
6 changes: 3 additions & 3 deletions serendipity_event_freetag/serendipity_event_freetag.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ function introspect(&$propbag)
'smarty' => '2.6.7',
'php' => '7.0'
));
$propbag->add('version', '3.70.8');
$propbag->add('version', '3.70.9');
$propbag->add('event_hooks', array(
'frontend_fetchentries' => true,
'frontend_fetchentry' => true,
Expand Down Expand Up @@ -689,14 +689,14 @@ function event_hook($event, &$bag, &$eventData, $addData = null) {

case 'frontend_display:rss-2.0:per_entry':
case 'frontend_display:rss-0.91:per_entry':
$eventData['display_dat'] .= $this->getFeedXmlForTags('category', $eventData['properties']['freetag_tags'] ?? []);
$eventData['display_dat'] = ($eventData['display_dat'] ?? '') . $this->getFeedXmlForTags('category', $eventData['properties']['freetag_tags'] ?? []);
return true;

case 'frontend_display:rss-1.0:per_entry':
case 'frontend_display:rss-0.91:per_entry':
case 'frontend_display:atom-0.3:per_entry':
case 'frontend_display:atom-1.0:per_entry':
$eventData['display_dat'] .= $this->getFeedXmlForTags('dc:subject', $eventData['properties']['freetag_tags']);
$eventData['display_dat'] = ($eventData['display_dat'] ?? '') . $this->getFeedXmlForTags('dc:subject', $eventData['properties']['freetag_tags']);
return true;

case 'external_plugin':
Expand Down

0 comments on commit 4c9cb57

Please sign in to comment.