Modify the API of the events to handle competing listeners
authorAlexander Ebert <ebert@woltlab.com>
Sun, 15 Dec 2024 12:34:56 +0000 (13:34 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Sun, 15 Dec 2024 12:34:56 +0000 (13:34 +0100)
commit62f844174aa4ddef675e95ae0f3a3bac67919295
tree92da6639d3186a3b02fad723d2588245b58701fb
parentc18942333889581120d7d2e3b62925861aa99cd1
Modify the API of the events to handle competing listeners

The generated pathname can now only be set once and all further attempts are rejected. Listeners are expected to test this with `hasFile()` prior to taking any action.
wcfsetup/install/files/lib/event/file/GenerateThumbnail.class.php
wcfsetup/install/files/lib/event/file/GenerateWebpVariant.class.php
wcfsetup/install/files/lib/system/file/processor/FileProcessor.class.php