Ensure the style logo is properly preserved in the database when not performing changes
authorTim Düsterhus <duesterhus@woltlab.com>
Fri, 4 Jun 2021 08:25:54 +0000 (10:25 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Fri, 4 Jun 2021 08:25:54 +0000 (10:25 +0200)
commit421f83044b04418b25ae171af46baa7561f92745
treeca93f01e4c410c1b1af72ac5d01f6a4c1c9c808c
parent4cddfd8f1e7ce0ff2a99a9ca65f64b7bbc7d48fc
Ensure the style logo is properly preserved in the database when not performing changes

This bug was introduced recently when the `!$file->isProcessed()` condition was
added. It was verified that the logo's filename remained stable within the file
system. However it was not verified that it was properly stored within the
database. As the previous style variables are deleted during the update we must
explicitly set the corresponding variable, otherwise it will be empty and the
logo will not be found.

see c72c06dc7bb21c5098613ab8fafc8596c8f6ce41
see #4240
wcfsetup/install/files/lib/data/style/StyleAction.class.php