Fix the icon validation, better JSON data structure
authorAlexander Ebert <ebert@woltlab.com>
Wed, 17 Aug 2022 17:33:36 +0000 (19:33 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Wed, 17 Aug 2022 17:33:36 +0000 (19:33 +0200)
commit3051715607d7690ca2928b589a12aa04d8c9b2ab
tree83d072edcb302da745bff23d9cbd34c555ee2cb7
parentbb6faeb4723d616435f6bd19430a7afe699ad890
Fix the icon validation, better JSON data structure

The previous data structure was a plain string array with 1.8k elements. Using an associative array with a useless value allows a much faster lookup using `isset()` rather than `\in_array()`.
wcfsetup/install/files/icon/font-awesome/v6/icons.json
wcfsetup/install/files/lib/system/style/FontAwesomeIcon.class.php