7a9c51a0 | 10-Feb-2024 |
Andreas Gohr <andi@splitbrain.org> |
Imports may not be named like local classes. fixes #4200
For compatibility reasons we let our old `cache` class inherit from `dokuwiki\Cache\Cache` but `cache` equals `Cache`. At least on some PHP v
Imports may not be named like local classes. fixes #4200
For compatibility reasons we let our old `cache` class inherit from `dokuwiki\Cache\Cache` but `cache` equals `Cache`. At least on some PHP versions? I did not see any problem on my local machine running PHP 8.2 but the problem was visible on a machine running 8.1.27
show more ...
|
2c978aed | 09-Feb-2024 |
Andreas Gohr <andi@splitbrain.org> |
sprintf expects ...args instead of an array. fixes #4193 |
1cedacf2 | 09-Feb-2024 |
Andreas Gohr <andi@splitbrain.org> |
gracefully handle decryption errors
This should fix #4198 |
1418a776 | 09-Feb-2024 |
Andreas Gohr <andi@splitbrain.org> |
API: legacy compatibility fix
wiki.getAllPages and dokuwiki.getPagelist differed in how the last modification timestamp was communicated.
This should fix splitbrain/dokuwiki-plugin-sync#70 |
64e1c19b | 08-Feb-2024 |
Nickeau <gerardnico@users.noreply.github.com> |
Reintroduce the FEED_DATA_PROCESS event
As explained here:
https://github.com/dokuwiki/dokuwiki/issues/4191 |
643ea3a6 | 07-Feb-2024 |
Andreas Gohr <andi@splitbrain.org> |
fix overeager optimization in Table handler. fixes #4186
This reverts an optimization introduced in bcaec9f47d06126b3e653fea89a86d8b6a6cbef8
The number of elements in $this->tableCalls may change d
fix overeager optimization in Table handler. fixes #4186
This reverts an optimization introduced in bcaec9f47d06126b3e653fea89a86d8b6a6cbef8
The number of elements in $this->tableCalls may change during the loop, so they need to be recounted on every step. To protect it from being "optimized" again, the loop was changed into a while loop.
Ultimately it should be checked if this method could be optimized in another way.
show more ...
|
ab86a1cd | 06-Feb-2024 |
Andreas Gohr <andi@splitbrain.org> |
adjust group type hint for User API response |
932ec837 | 06-Feb-2024 |
Andreas Gohr <andi@splitbrain.org> |
fix User response object in API |
8b267e5e | 06-Feb-2024 |
splitbrain <splitbrain@users.noreply.github.com> |
Rector and PHPCS fixes |
e9472a98 | 06-Feb-2024 |
Anna Dabrowska <dabrowska@cosmocode.de> |
Fix false errors when calling getInfo() from some plugins |
e08e2789 | 04-Feb-2024 |
Bheesham Persaud <171007+bheesham@users.noreply.github.com> |
inc/fulltext Result from splice could be empty
The code for `AND` and `OR` assumes the call to splice will always return 2 elements, which isn't the case if no terms are found.
Example log messages
inc/fulltext Result from splice could be empty
The code for `AND` and `OR` assumes the call to splice will always return 2 elements, which isn't the case if no terms are found.
Example log messages:
PHP Warning: Undefined array key 0 in .../dokuwiki/inc/fulltext.php on line 134 PHP Warning: Undefined array key 1 in .../dokuwiki/inc/fulltext.php on line 134 PHP Warning: foreach() argument must be of type array|object, null given in .../dokuwiki/inc/fulltext.php on line 614
Simplified example, via `php -a`:
php > $arr = []; php > [$a, $b] = array_splice($arr, -2); PHP Warning: Undefined array key 0 in php shell code on line 1 PHP Warning: Undefined array key 1 in php shell code on line 1
To clear the warning we check if the result is empty and break early, otherwise we pass the result into `ft_resultCombine` or `ft_resultUnite`, which both handle the length 1 arrays.
show more ...
|
e502773d | 28-Jan-2024 |
CodyMaster007 <lazorenkoda1@gmail.com> |
translation update |
d160d64a | 27-Jan-2024 |
JPdroid <jpdroid.jpo@gmail.com> |
translation update |
32b5865d | 26-Jan-2024 |
NiteNeal <niteneal@gmail.com> |
translation update |
2fb31c4f | 26-Jan-2024 |
Andreas Gohr <andi@splitbrain.org> |
io_deleteFromFile: pass a string not null |
72c714a3 | 26-Jan-2024 |
splitbrain <splitbrain@users.noreply.github.com> |
Rector and PHPCS fixes |
e860a4fb | 26-Jan-2024 |
Andreas Gohr <andi@splitbrain.org> |
fix is_ssl() check
There was a global statement missing? This seems to have to been broken in one of the recent merges.
Tests have been cleaned up but not changes in logic. |
4847991d | 26-Jan-2024 |
splitbrain <splitbrain@users.noreply.github.com> |
Rector and PHPCS fixes |
cf9a4884 | 26-Jan-2024 |
Andreas Gohr <andi@splitbrain.org> |
feed: use default favicon as very last resort
The dokuwiki logos we deliver in the wiki namespace are preferable. |
4554d54d | 26-Jan-2024 |
Andreas Gohr <andi@splitbrain.org> |
feed: set item date. fixes #2960
The date was completely missing in the recent refactor. This readds it and uses a unix timestamp as suggested in #2960 |
a94c17ee | 26-Jan-2024 |
Andreas Gohr <andi@splitbrain.org> |
style fixes |
1136941d | 26-Jan-2024 |
Andreas Gohr <andi@splitbrain.org> |
feed: set tagline as subtitle. fixes #2239 |
fe9d054b | 15-Jan-2024 |
Andreas Gohr <andi@splitbrain.org> |
Feed creation refactoring
This breaks up the humongous functions from feed.php into multiple classes. To keep compatibility with existing Plugin events, the basic principle of how the feed is assemb
Feed creation refactoring
This breaks up the humongous functions from feed.php into multiple classes. To keep compatibility with existing Plugin events, the basic principle 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 Feed
The conversion from loosely typed item data to something more structured is now done by the FeedItemProcessor classes. Some very basic tests have been added. It does not cover erverything but covers more than before (which was nothing).
Manual testing before merging this is highly recommended. I am not confident that I ported over everything correctly.
No new features have been added, but especially media support could and should be improved in the future.
show more ...
|
ac56bec8 | 17-Jan-2024 |
Andreas Gohr <andi@splitbrain.org> |
fall back to empty (root) dir for base dir detection
When a basedir could not be detected, the default previously was '.' resulting in a valid but weird URL (http://example.com/./doku.php). We now d
fall back to empty (root) dir for base dir detection
When a basedir could not be detected, the default previously was '.' resulting in a valid but weird URL (http://example.com/./doku.php). We now default to an empty dir, resulting in a more sensible URL of http://example.com/doku.php
This should not matter in real web server setups but will be in effect while testing.
show more ...
|
47e9ed0e | 12-Jan-2024 |
Andreas Gohr <andi@splitbrain.org> |
adjust AES encryption to match phpseclib version2
See https://github.com/phpseclib/phpseclib/discussions/1974#discussioncomment-8107663 |