Co-authored-by: Tim Düsterhus <duesterhus@woltlab.com>
// 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();
}
},
* @since 5.3
*/
public function replaceFile() {
- $saveStrategy = new DefaultUploadFileSaveStrategy(self::class, [
+ $saveStrategy = new DefaultUploadFileSaveStrategy(static::class, [
'action' => 'update',
'generateThumbnails' => true,
'object' => $this->getSingleObject()->getDecoratedObject(),