History log of /dokuwiki/inc/ (Results 576 – 600 of 6646)
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
a16ec18227-Aug-2022 Name <nam@example.com>

translation update

0306286426-Aug-2022 Andreas Gohr <andi@splitbrain.org>

use $INPUT to access authentication environment #3750

This should fix warnings about missing data.

12dd3cbc26-Aug-2022 Andreas Gohr <andi@splitbrain.org>

introduce sexplode() as a PHP8 safe explode()

We often have constructs like

list($foo, $bar) = explode(',', $input, 2);

In PHP8+ this will throw warnings when the explode returns fewer than 2
elem

introduce sexplode() as a PHP8 safe explode()

We often have constructs like

list($foo, $bar) = explode(',', $input, 2);

In PHP8+ this will throw warnings when the explode returns fewer than 2
elements. Our code usually (always?) will anticipate missing elements so
the construct isn't really problematic.

The implementation here wraps the solution suggested at
https://stackoverflow.com/a/56971347 into a new utility function.

I anticipate that people might object to the function name. It was
chosen as a short form of "safe explode". This makes fixing the warning
easy by simply adding a single letter. I also find it slightly amusing
and would be open to change it to just sex() just for the fun of it.

show more ...

062cf88b26-Aug-2022 Andreas Gohr <andi@splitbrain.org>

avoid warning for new subscribers

When a subscriber never received an email no last sent timestamp is set.
PHP8 threw a warning on a missing array key, there.

96ebed3626-Aug-2022 Andreas Gohr <andi@splitbrain.org>

fix warning when no headline id is provided in section editor

When plugins implement their own section editor, usually no hid parameter
will be set, triggering a warning in PHP 8.

fixes #114

0c79340c15-Aug-2022 Andreas Gohr <andi@splitbrain.org>

fix codestyle

0b1b444c15-Aug-2022 AdaKaleh <31895292+adakaleh@users.noreply.github.com>

Remove Accept-Encoding from auth_browseruid()

Browsers do not send the same Accept-Encoding header for all requests, so using
it as part of auth_browseruid() can break things. For example, the audi

Remove Accept-Encoding from auth_browseruid()

Browsers do not send the same Accept-Encoding header for all requests, so using
it as part of auth_browseruid() can break things. For example, the audio
CAPTCHA in the official CAPTCHA plugin stopped matching its corresponding
image. Details here:

https://github.com/splitbrain/dokuwiki-plugin-captcha/issues/115#issuecomment-1215007408

show more ...

c7dab4e814-Aug-2022 Andreas Gohr <andi@splitbrain.org>

replace deprecated method calls

c243774d14-Aug-2022 Andreas Gohr <andi@splitbrain.org>

another go at #3717

c0ece86a0ac0cfab0856b056fb3ce8e726855542 was wrong too, because most
deprecation logs drop the callee

6c6732d614-Aug-2022 Andreas Gohr <andi@splitbrain.org>

output log messages to STDERR during unit testig

This is especially helpful to notice deprecation messages

c0ece86a14-Aug-2022 Andreas Gohr <andi@splitbrain.org>

Another fix for #3717

The deprecation mechanism did actually log the wrong file (callee
instead of caller). This was fixed and the message adjusted again.

A guardian for very short backtraces and l

Another fix for #3717

The deprecation mechanism did actually log the wrong file (callee
instead of caller). This was fixed and the message adjusted again.

A guardian for very short backtraces and large offsets was added

show more ...

25edeeca14-Aug-2022 Andreas Gohr <andi@splitbrain.org>

log deprecation messages independent from allowdebug

Only the logging configuration should influnece if deprecation messages
are to be logged. By default they should be logged.

704bf76814-Aug-2022 Andreas Gohr <andi@splitbrain.org>

replace deprecated call to dbglog. fixes #3726

be6462f413-Aug-2022 Andreas Gohr <andi@splitbrain.org>

log warnings to error log

This introduces an error handler that will log warnings, including a
stack trace in the error log. This should help plugin and core authors with
identifying cases of uninit

log warnings to error log

This introduces an error handler that will log warnings, including a
stack trace in the error log. This should help plugin and core authors with
identifying cases of uninitilized variables in PHP8+ environments.

A feature flag (default off) will let users temporarily disable the
display of warnings in the frontend. This should allow the usage of not
yet upgraded plugins in many cases. In the future the flag can be
removed again.

show more ...

3f16857405-Aug-2022 TherealperO <110610509+TherealperO@users.noreply.github.com>

Update Recent.php

Fix bug in line 158:

Change
$itemType = $info['mode'] = $info['media'] ? 'media' : 'page';
to
$itemType = $info['media'] ? 'media' : 'page';

3855b15e04-Aug-2022 TherealperO <110610509+TherealperO@users.noreply.github.com>

Update Recent.php

Change to use $info['media'] instead of checking for dots in $ID to decide $info['mode'].

35bad86a04-Aug-2022 TherealperO <110610509+TherealperO@users.noreply.github.com>

Update changelog.php

Change so `$x['media']` is always set to either true or false. This so in Recent.php `$recent['media']` is never null and won't cause undefined array key error in PHP8.

f8a541a204-Aug-2022 TherealperO <110610509+TherealperO@users.noreply.github.com>

Update PageDiff.php

921c2ae304-Aug-2022 TherealperO <110610509+TherealperO@users.noreply.github.com>

Update MediaDiff.php

4d8dc0ce04-Aug-2022 TherealperO <110610509+TherealperO@users.noreply.github.com>

Update PageRevisions.php

Fix history for pages with dot in name

7efac80b04-Aug-2022 TherealperO <110610509+TherealperO@users.noreply.github.com>

Update MediaRevisions.php

Fix history for pages with dot in name.

29baf67604-Aug-2022 TherealperO <110610509+TherealperO@users.noreply.github.com>

Update RevisionInfo.php

Fix broken history for pages with dots in name

5a10fbce27-Jul-2022 Andreas Gohr <andi@splitbrain.org>

Support the multiple attribute in Form selects

This should fix a problem mentioned in
https://github.com/splitbrain/dokuwiki-plugin-data/pull/229#issuecomment-1196367602

Note that prefilling from $

Support the multiple attribute in Form selects

This should fix a problem mentioned in
https://github.com/splitbrain/dokuwiki-plugin-data/pull/229#issuecomment-1196367602

Note that prefilling from $INPUT is still only supported for single
value selects.

show more ...

ef42a6cf26-Jul-2022 Marc Zulet <marczulet@gmail.com>

translation update

d967ecd806-Jul-2022 Andreas Gohr <andi@splitbrain.org>

fix image resizing with width only. fixes #3707

When only a width is given, the image should be resized to this width
always. The code wrongly used the width to create a bounding box
instead.

1...<<21222324252627282930>>...266