History log of /dokuwiki/inc/media.php (Results 1 – 25 of 323)
Revision Date Author Comments
# 0296c9b0 05-Jun-2025 Matt Perry <matt@mattperry.com>

Add support for webp preview in the media manager


# b3894732 30-Oct-2024 splitbrain <86426+splitbrain@users.noreply.github.com>

�� Rector and PHPCS fixes


# 186263b2 01-May-2024 Damien Regad <dregad@mantisbt.org>

Apply PSR-12 to media_nstree() function


# de301a35 01-May-2024 Damien Regad <dregad@mantisbt.org>

Fix display of media manager namespace hierarchy

When the media manager is called with ns parameter set to a value higher
than the last namespace defined in the wiki, the non-existing namespace
is n

Fix display of media manager namespace hierarchy

When the media manager is called with ns parameter set to a value higher
than the last namespace defined in the wiki, the non-existing namespace
is not added to the hierarchy.

This behavior is not consistent with what happens when the namespace's
name is lower. In this case, an entry is inserted in the tree at the
appropriate location.

Fixed by appending the temporary namespace at the end of the tree if it
was not inserted by the search loop.

Fixes #4276

show more ...


# 9988e853 01-May-2024 Damien Regad <dregad@mantisbt.org>

Fix Undefined array key warning

E_WARNING: Undefined array key 3 in ./inc/media.php(1700)
E_WARNING: Trying to access array offset on value of type null in ./inc/media.php(1700)

This happens when t

Fix Undefined array key warning

E_WARNING: Undefined array key 3 in ./inc/media.php(1700)
E_WARNING: Trying to access array offset on value of type null in ./inc/media.php(1700)

This happens when the media manager is called with ns parameter set to
a value higher than the last namespace defined in the wiki.

Fixes #4276

show more ...


# 7c5af60e 14-Nov-2023 Andreas Gohr <andi@splitbrain.org>

Merge branch 'master' into patch-4


# 6c16a3a9 14-Sep-2023 fiwswe <fiwswe@fwml.de>

Use str_starts_with/str_ends_with


# ab240622 02-Sep-2023 Andreas Gohr <andi@splitbrain.org>

indentation fix in media.php


# d4f83172 31-Aug-2023 Andreas Gohr <andi@splitbrain.org>

code style: line breaks


# 90fb952c 31-Aug-2023 Andreas Gohr <andi@splitbrain.org>

code style: operator spacing


# 26dfc232 31-Aug-2023 Andreas Gohr <andi@splitbrain.org>

Rector to rename print to echo calls


# 7d34963b 31-Aug-2023 Andreas Gohr <andi@splitbrain.org>

coding style: control flow line breaks


# 177d6836 31-Aug-2023 Andreas Gohr <andi@splitbrain.org>

coding style: control flow whitespaces


# a19c9aa0 30-Aug-2023 Gerrit Uitslag <klapinklapin@gmail.com>

recover comments in list


# dccd6b2b 30-Aug-2023 Andreas Gohr <andi@splitbrain.org>

coding style: function call spacing


# ed823bcd 30-Aug-2023 Andreas Gohr <andi@splitbrain.org>

codestyle adjustments: PHP constant casing


# d868eb89 30-Aug-2023 Andreas Gohr <andi@splitbrain.org>

codestyle adjustments: function declaration braces/spaces


# c1482d1c 30-Aug-2023 Andreas Gohr <andi@splitbrain.org>

codestyle adjustments: function argument spacing


# 24870174 29-Aug-2023 Andreas Gohr <andi@splitbrain.org>

Apply rector fixes to the rest of inc


# 5cefb623 22-Jun-2023 Eduardo Mozart de Oliveira <2974895+eduardomozart@users.noreply.github.com>

Update media.php


# a46cc3dc 11-Mar-2023 Andreas Gohr <andi@splitbrain.org>

Fix old revisions skipping one revision

This changes the UI to start counting at -1, which will instruct the
Revision Management to prepend the current revision to the list of old
revisions returned

Fix old revisions skipping one revision

This changes the UI to start counting at -1, which will instruct the
Revision Management to prepend the current revision to the list of old
revisions returned. This way no special handling for the current
revision has to be done in the UI class anymore and paging works
naturally.

Fixes #3897

show more ...


# ec88e837 31-Jan-2023 Andreas Gohr <andi@splitbrain.org>

fix deprecated ${var} usage


# 2b9be456 10-Nov-2022 Andreas Gohr <andi@splitbrain.org>

some more fixes for undefined vars

This makes more use of $INPUT to access $_SERVER and fixes a warning in
one of the search methods.


# d967ecd8 06-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.


# b021f0b4 27-Jan-2022 Andreas Gohr <andi@splitbrain.org>

correctly (re)cache modified images

The previous code used to cache the result of resize and crop image
operations indefinitely. They only time these caches were refreshed were
when the original sou

correctly (re)cache modified images

The previous code used to cache the result of resize and crop image
operations indefinitely. They only time these caches were refreshed were
when the original source changed.

This meant that changes in configuration (eg. the image quality setting)
were never applied to existing images, neither were changes/improvements
in the resizing code.

This patch introduces a new Cache class for these kind of modification
results.

It also removes more duplicated code in media_resize_image and
media_crop_image. Future refactorings may move this code into
File\MediaFile

This code should also fix currently weird results for plugin and
screenshot in the extension manager - TBH I am not 100% sure what
happened there but refreshing the cache once seems to solve the problem.

show more ...


12345678910>>...13