fix revisions used in RSS feeds. fixes #4357A negative value needs to be passed to retrieve the current revision.
change use order for codesniffer happyness
Rector and PHPCS fixes
ignore codesniffer on override method
Replace strftime with Intl ICU. Fixes #3573This uses a class that maps strftime placeholders to the appropriate ICUpatterns. I am using the fallback-intl branch here which provides anEnglish-only
Replace strftime with Intl ICU. Fixes #3573This uses a class that maps strftime placeholders to the appropriate ICUpatterns. I am using the fallback-intl branch here which provides anEnglish-only fallback when the intl extension is not available.Core has only two places where strftime is used: dformat() and theSimplePie feed parser. Both are adjusted with this patch. For the lattera custom Item class had to be registered. For better separation all ourFeedParser classes have been moved to the Feed namespace where ourFeedCreator classes already reside.Note that this will currently be a degration for users without intl asit will fall back to date and not to the still available strftime.
show more ...
use correct FeedOptions methods. fixes #4203This makes feed.php use the correct methods for setting the feed typeand content-type header. It also adds the missing type definition forRSS 1.0
Reintroduce the FEED_DATA_PROCESS eventAs explained here: https://github.com/dokuwiki/dokuwiki/issues/4191
feed: use default favicon as very last resortThe dokuwiki logos we deliver in the wiki namespace are preferable.
feed: set item date. fixes #2960The date was completely missing in the recent refactor. This readds itand uses a unix timestamp as suggested in #2960
style fixes
feed: set tagline as subtitle. fixes #2239
Feed creation refactoringThis breaks up the humongous functions from feed.php into multipleclasses. To keep compatibility with existing Plugin events, the basicprinciple of how the feed is assemb
Feed creation refactoringThis breaks up the humongous functions from feed.php into multipleclasses. To keep compatibility with existing Plugin events, the basicprinciple of how the feed is assembled has not been changed:* depending on the given mode and other options lose arrays of items are gathered* these items are then converted (again based on the various options) into proper FeedItems* the FeedItems are then added to the FeedThe conversion from loosely typed item data to something more structuredis now done by the FeedItemProcessor classes. Some very basic tests havebeen added. It does not cover erverything but covers more than before(which was nothing).Manual testing before merging this is highly recommended. I am notconfident that I ported over everything correctly.No new features have been added, but especially media support could andshould be improved in the future.