From 026bccc6bc79f6666cd6af4c5177c6877ec16278 Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Sat, 27 Jun 2020 17:54:41 +0200 Subject: [PATCH] Apply suggestions from code review MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Co-authored-by: Tim Düsterhus --- .../install/files/js/WoltLabSuite/Core/Media/Manager/Base.js | 2 +- wcfsetup/install/files/lib/data/media/MediaAction.class.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Media/Manager/Base.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Media/Manager/Base.js index f51656121b..b290ffc880 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Media/Manager/Base.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Media/Manager/Base.js @@ -309,7 +309,7 @@ define( // Bust browser cache by adding additional parameter. var imgs = elByTag('img', thumbnail); if (imgs.length) { - imgs[0].src += '&refresh=1'; + imgs[0].src += '&refresh=' + Date.now(); } }, diff --git a/wcfsetup/install/files/lib/data/media/MediaAction.class.php b/wcfsetup/install/files/lib/data/media/MediaAction.class.php index 42d5a5f6fe..eeb2633305 100644 --- a/wcfsetup/install/files/lib/data/media/MediaAction.class.php +++ b/wcfsetup/install/files/lib/data/media/MediaAction.class.php @@ -710,7 +710,7 @@ class MediaAction extends AbstractDatabaseObjectAction implements ISearchAction, * @since 5.3 */ public function replaceFile() { - $saveStrategy = new DefaultUploadFileSaveStrategy(self::class, [ + $saveStrategy = new DefaultUploadFileSaveStrategy(static::class, [ 'action' => 'update', 'generateThumbnails' => true, 'object' => $this->getSingleObject()->getDecoratedObject(), -- 2.20.1