History log of /dokuwiki/inc/ (Results 126 – 150 of 6433)
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
7a9c51a010-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 ...

2c978aed09-Feb-2024 Andreas Gohr <andi@splitbrain.org>

sprintf expects ...args instead of an array. fixes #4193

1cedacf209-Feb-2024 Andreas Gohr <andi@splitbrain.org>

gracefully handle decryption errors

This should fix #4198

1418a77609-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

64e1c19b08-Feb-2024 Nickeau <gerardnico@users.noreply.github.com>

Reintroduce the FEED_DATA_PROCESS event

As explained here:
https://github.com/dokuwiki/dokuwiki/issues/4191

643ea3a607-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 ...

ab86a1cd06-Feb-2024 Andreas Gohr <andi@splitbrain.org>

adjust group type hint for User API response

932ec83706-Feb-2024 Andreas Gohr <andi@splitbrain.org>

fix User response object in API

8b267e5e06-Feb-2024 splitbrain <splitbrain@users.noreply.github.com>

�� Rector and PHPCS fixes

e9472a9806-Feb-2024 Anna Dabrowska <dabrowska@cosmocode.de>

Fix false errors when calling getInfo() from some plugins

e08e278904-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 ...


/dokuwiki/.gitignore
/dokuwiki/composer.json
/dokuwiki/composer.lock
/dokuwiki/data/deleted.files
/dokuwiki/feed.php
fulltext.php
/dokuwiki/lib/exe/css.php
/dokuwiki/lib/plugins/config/lang/ru/lang.php
/dokuwiki/lib/plugins/extension/helper/extension.php
/dokuwiki/lib/plugins/extension/helper/list.php
/dokuwiki/lib/plugins/extension/lang/en/lang.php
/dokuwiki/lib/plugins/extension/lang/pl/lang.php
/dokuwiki/lib/plugins/extension/lang/ru/lang.php
/dokuwiki/vendor/composer/autoload_classmap.php
/dokuwiki/vendor/composer/autoload_psr4.php
/dokuwiki/vendor/composer/autoload_static.php
/dokuwiki/vendor/composer/installed.json
/dokuwiki/vendor/composer/installed.php
/dokuwiki/vendor/splitbrain/lesserphp/.gitignore
/dokuwiki/vendor/splitbrain/lesserphp/.phpcs.xml
/dokuwiki/vendor/splitbrain/lesserphp/HISTORY.md
/dokuwiki/vendor/splitbrain/lesserphp/LICENSE
/dokuwiki/vendor/splitbrain/lesserphp/README.md
/dokuwiki/vendor/splitbrain/lesserphp/composer.json
/dokuwiki/vendor/splitbrain/lesserphp/rector.php
/dokuwiki/vendor/splitbrain/lesserphp/src/Constants.php
/dokuwiki/vendor/splitbrain/lesserphp/src/FormatterClassic.php
/dokuwiki/vendor/splitbrain/lesserphp/src/FormatterCompressed.php
/dokuwiki/vendor/splitbrain/lesserphp/src/FormatterLessJs.php
/dokuwiki/vendor/splitbrain/lesserphp/src/Functions/AbstractFunctionCollection.php
/dokuwiki/vendor/splitbrain/lesserphp/src/Functions/ColorChannels.php
/dokuwiki/vendor/splitbrain/lesserphp/src/Functions/ColorDefinition.php
/dokuwiki/vendor/splitbrain/lesserphp/src/Functions/ColorOperation.php
/dokuwiki/vendor/splitbrain/lesserphp/src/Functions/Lists.php
/dokuwiki/vendor/splitbrain/lesserphp/src/Functions/Math.php
/dokuwiki/vendor/splitbrain/lesserphp/src/Functions/Misc.php
/dokuwiki/vendor/splitbrain/lesserphp/src/Functions/Strings.php
/dokuwiki/vendor/splitbrain/lesserphp/src/Functions/Type.php
/dokuwiki/vendor/splitbrain/lesserphp/src/Lessc.php
/dokuwiki/vendor/splitbrain/lesserphp/src/Parser.php
/dokuwiki/vendor/splitbrain/lesserphp/src/ParserException.php
/dokuwiki/vendor/splitbrain/lesserphp/src/Utils/Asserts.php
/dokuwiki/vendor/splitbrain/lesserphp/src/Utils/Color.php
/dokuwiki/vendor/splitbrain/lesserphp/src/Utils/Util.php
e502773d28-Jan-2024 CodyMaster007 <lazorenkoda1@gmail.com>

translation update

d160d64a27-Jan-2024 JPdroid <jpdroid.jpo@gmail.com>

translation update

32b5865d26-Jan-2024 NiteNeal <niteneal@gmail.com>

translation update

2fb31c4f26-Jan-2024 Andreas Gohr <andi@splitbrain.org>

io_deleteFromFile: pass a string not null

72c714a326-Jan-2024 splitbrain <splitbrain@users.noreply.github.com>

�� Rector and PHPCS fixes

e860a4fb26-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.

4847991d26-Jan-2024 splitbrain <splitbrain@users.noreply.github.com>

�� Rector and PHPCS fixes

cf9a488426-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.

4554d54d26-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

a94c17ee26-Jan-2024 Andreas Gohr <andi@splitbrain.org>

style fixes

1136941d26-Jan-2024 Andreas Gohr <andi@splitbrain.org>

feed: set tagline as subtitle. fixes #2239

fe9d054b15-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 ...

ac56bec817-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 ...

47e9ed0e12-Jan-2024 Andreas Gohr <andi@splitbrain.org>

adjust AES encryption to match phpseclib version2

See https://github.com/phpseclib/phpseclib/discussions/1974#discussioncomment-8107663

12345678910>>...258