diff options
author | Andreas Gohr <andi@splitbrain.org> | 2023-03-10 15:33:13 +0100 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2023-03-10 15:33:13 +0100 |
commit | b43a1395186275087a0c9d0d29d9fbcfc743547c (patch) | |
tree | fbb9de4a44f5a483b381d795ef1085eafa8bf52b | |
parent | 9cddb935abb40a34343afe40ba0cc98535cbdd90 (diff) | |
download | dokuwiki-b43a1395186275087a0c9d0d29d9fbcfc743547c.tar.gz dokuwiki-b43a1395186275087a0c9d0d29d9fbcfc743547c.zip |
MediaManager: remove check for removed option
The refshow option has been removed in
3e7e02779454686e1c639eb366a195bd1ab50458 and should not have been
checked anymore. This fixes a warning on PHP8 when deleting a media
file.
Replaces #3912
-rw-r--r-- | lib/exe/mediamanager.php | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/exe/mediamanager.php b/lib/exe/mediamanager.php index 863689469..3d8f865b0 100644 --- a/lib/exe/mediamanager.php +++ b/lib/exe/mediamanager.php @@ -116,9 +116,7 @@ use dokuwiki\Extension\Event; } msg($msg,1); } elseif ($res & DOKU_MEDIA_INUSE) { - if(!$conf['refshow']) { - msg(sprintf($lang['mediainuse'],noNS($DEL)),0); - } + msg(sprintf($lang['mediainuse'],noNS($DEL)),0); } else { msg(sprintf($lang['deletefail'],noNS($DEL)),-1); } |