Apply suggestions from code review
authorMatthias Schmidt <gravatronics@live.com>
Sat, 27 Jun 2020 15:54:41 +0000 (17:54 +0200)
committerGitHub <noreply@github.com>
Sat, 27 Jun 2020 15:54:41 +0000 (17:54 +0200)
Co-authored-by: Tim Düsterhus <duesterhus@woltlab.com>
wcfsetup/install/files/js/WoltLabSuite/Core/Media/Manager/Base.js
wcfsetup/install/files/lib/data/media/MediaAction.class.php

index f51656121b4878056dc3568eabbcf895c6c847f8..b290ffc880a7ce04e4df40c1457d1c3739f23c8e 100644 (file)
@@ -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();
                        }
                },
                
index 42d5a5f6fe9085d288a2b65cbbc6a5379984f3a5..eeb26333054e18d1f494959fb06b21494913c7cd 100644 (file)
@@ -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(),