Fix the fallback value for invalid trophy icons
authorAlexander Ebert <ebert@woltlab.com>
Thu, 12 Oct 2023 17:03:19 +0000 (19:03 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Thu, 12 Oct 2023 17:03:19 +0000 (19:03 +0200)
See https://www.woltlab.com/community/thread/302007-fehler-mit-troph%C3%A4en-bei-update-von-5-5-auf-6-0/
See https://www.woltlab.com/community/thread/302031/

wcfsetup/install/files/acp/update_com.woltlab.wcf_6.0_trophies.php

index 48684b9ebf396f4083d96c5a1a0d14f42387001c..58682bf2f877123d1699d1a35966b2c51e3317e8 100644 (file)
@@ -45,7 +45,7 @@ foreach ($iconData as $trophyID => $oldIconName) {
         // If the old icon is unknown we replace it with a placeholder.
         \wcf\functions\exception\logThrowable($e);
 
-        $newIconName = FontAwesomeIcon::fromString('trophy')->__toString();
+        $newIconName = FontAwesomeIcon::fromString('trophy;false')->__toString();
     }
 
     $statement->execute([