Commit Graph

12409 Commits

Author SHA1 Message Date
Gerrit Uitslag e5162060f6
Merge pull request #4179 from dokuwiki-translate/lang_update_816_1707029431
Translation update (ru)
2024-02-04 12:23:36 +01:00
mod cd9495f418 translation update 2024-02-04 07:51:56 +01:00
Bheesham Persaud e08e2789d1 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.
2024-02-03 19:50:38 -05:00
Andreas Gohr 6031346ff2
Merge pull request #4176 from dokuwiki/bot/autofix
🤖 Automatic code style fixes
2024-02-02 15:09:19 +01:00
splitbrain cc47c50fe3 🤖 Rector and PHPCS fixes 2024-02-02 14:08:33 +00:00
Andreas Gohr ad3a97a1cf
Merge pull request #4175 from dokuwiki/bot/deletedFiles
🤖 Update deleted files
2024-02-02 15:05:34 +01:00
splitbrain 77081e6b6c 🤖 Update deleted files 2024-02-02 14:04:11 +00:00
Andreas Gohr e6380ba37d replace LESS library. fixes #4088
This replaces the abandoned fork with my own fork at splitbrain/lesserphp

That fork has been cleaned up somewhat and the issues in #4088 should be
fixed.
2024-02-02 15:03:49 +01:00
Gerrit Uitslag b6c5585f4e
Merge pull request #4174 from dokuwiki-translate/lang_update_811_1706632277
Translation update (pl)
2024-01-30 22:09:50 +01:00
Marek Adamski fba8735a0d translation update 2024-01-30 17:36:14 +01:00
Andreas Gohr fda46cf58c
Merge pull request #4173 from dokuwiki-translate/lang_update_804_1706597818
Translation update (ru)
2024-01-30 10:23:37 +01:00
Andreas Gohr 91e8c0de8f
Merge pull request #4165 from dokuwiki/bot/autofix
🤖 Automatic code style fixes
2024-01-30 09:45:39 +01:00
splitbrain 2abe2b13fc 🤖 Rector and PHPCS fixes 2024-01-30 08:44:03 +00:00
Andreas Gohr 9ada0a85a2
Merge pull request #4172 from dokuwiki/updatemessage
show update message in Extension Manager if available
2024-01-30 09:39:19 +01:00
Impeck 99a964338e translation update 2024-01-30 08:01:38 +01:00
Gerrit Uitslag f4d0426bce show update message in Extension Manager if available 2024-01-30 00:14:36 +01:00
Phy 0175e14a9f
Merge pull request #4167 from dokuwiki-translate/lang_update_800_1706385011
Translation update (pt)
2024-01-28 14:11:27 -05:00
Gerrit Uitslag 35790e292e
Merge pull request #4168 from dokuwiki-translate/lang_update_802_1706456213
Translation update (uk)
2024-01-28 17:47:18 +01:00
CodyMaster007 e502773d57 translation update 2024-01-28 16:41:39 +01:00
JPdroid d160d64abc translation update 2024-01-27 20:56:15 +01:00
Phy b3bae64e3f
Merge pull request #4166 from dokuwiki-translate/lang_update_798_1706297950
Translation update (ru)
2024-01-26 20:20:29 -05:00
NiteNeal 32b5865d35 translation update 2024-01-26 20:41:38 +01:00
Andreas Gohr 87f6c71855 remove obsolete feed creation code
This was left over in #4156
2024-01-26 20:11:43 +01:00
Andreas Gohr 2fb31c4fed io_deleteFromFile: pass a string not null 2024-01-26 20:10:34 +01:00
Andreas Gohr 94fd57408c
Merge pull request #4163 from dokuwiki/bot/autofix
🤖 Automatic code style fixes
2024-01-26 15:34:45 +01:00
splitbrain 72c714a3b8 🤖 Rector and PHPCS fixes 2024-01-26 14:24:41 +00:00
Andreas Gohr 2cadabe7de Updated composer dependencies 2024-01-26 15:19:44 +01:00
Andreas Gohr 085622b5ac
Merge pull request #3978 from dregad/undefined-array-key
Fix undefined array key warning
2024-01-26 15:10:47 +01:00
Andreas Gohr e860a4fbf1 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.
2024-01-26 14:59:53 +01:00
Andreas Gohr 754eefa383
Merge pull request #4156 from dokuwiki/feedrefactor
Feed creation refactoring
2024-01-26 14:43:14 +01:00
Andreas Gohr ed5b1dbc60
Merge pull request #4159 from dokuwiki/bot/autofix
🤖 Automatic code style fixes
2024-01-26 14:42:16 +01:00
fiwswe a0d0304579 return false in getUserData in case of errors
The interface contract for the method getUserData does not allow an empty array to be returned.
2024-01-26 14:39:13 +01:00
splitbrain 4847991d4d 🤖 Rector and PHPCS fixes 2024-01-26 11:56:43 +00:00
Andreas Gohr 78b8232bb0
Merge pull request #4069 from dokuwiki/debugbacktrace
Fix Undefined array key "file" and "line"
2024-01-26 12:52:08 +01:00
Andreas Gohr 482bf1d581 fix FeedPageProcessorTest on Github
It seems that the dataProvider generator runs before the rest of the
test suite, resulting in a wrong modification timestamp being read.

It's unclear why this happens on Github only.
2024-01-26 12:41:38 +01:00
Andreas Gohr 2d1b030690 check feed validity at w3c validator 2024-01-26 11:33:48 +01:00
Andreas Gohr cf9a48845c feed: use default favicon as very last resort
The dokuwiki logos we deliver in the wiki namespace are preferable.
2024-01-26 11:32:46 +01:00
Andreas Gohr 4554d54da6 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
2024-01-26 10:17:07 +01:00
Andreas Gohr a94c17eeed style fixes 2024-01-26 10:14:22 +01:00
Andreas Gohr 1136941dd7 feed: set tagline as subtitle. fixes #2239 2024-01-26 10:10:02 +01:00
Andreas Gohr 6e2ee56d21
Merge pull request #4104 from m-martin-78/xfhsupport
Add support for X-Forwarded-Host proxy header
2024-01-26 09:52:29 +01:00
Andreas Gohr 33b3315418 Update rector and the used class namespace
Seems like the class alias for Rector\Core is removed in 19.2 This
should fix the rector runs on github.
2024-01-25 10:45:55 +01:00
Phy dd4993d183
Merge pull request #4158 from dokuwiki-translate/lang_update_796_1706150770
Translation update (fr)
2024-01-24 22:41:03 -05:00
Schplurtz le Déboulonné 23048d5301 translation update 2024-01-25 03:51:55 +01:00
Andreas Gohr fe9d054b30 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.
2024-01-17 19:32:10 +01:00
Andreas Gohr 77d32594e8 Merge branch 'emptydirdefault'
* emptydirdefault:
  fall back to empty (root) dir for base dir detection
2024-01-17 19:21:48 +01:00
Andreas Gohr ac56bec8fe 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.
2024-01-17 19:04:39 +01:00
Phy 8985cadc85
Merge pull request #4151 from dokuwiki-translate/lang_update_790_1705147363
Translation update (zh)
2024-01-13 15:30:40 -05:00
Andreas Gohr f8dac3dfec
Merge pull request #4150 from e-dschungel/e-dschungel-patch-php-url
adjust php.net URL
2024-01-13 15:17:16 +01:00
chuachua 4d41588b14 translation update 2024-01-13 13:06:15 +01:00