From: Matthias Schmidt Date: Sat, 27 Jun 2020 15:54:41 +0000 (+0200) Subject: Apply suggestions from code review X-Git-Tag: 5.3.0_Alpha_1~151^2~2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=026bccc6bc79f6666cd6af4c5177c6877ec16278;p=GitHub%2FWoltLab%2FWCF.git Apply suggestions from code review Co-authored-by: Tim Düsterhus --- 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(),