Remove explicit include of class-php-ico.php in StyleAction
authorTim Düsterhus <duesterhus@woltlab.com>
Thu, 21 Oct 2021 08:49:43 +0000 (10:49 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Thu, 21 Oct 2021 08:49:43 +0000 (10:49 +0200)
This class can be loaded using composer's autoloader.

wcfsetup/install/files/lib/data/style/StyleAction.class.php

index 20d5feaa65fe645526dd854455df7fb21a5aae66..5ce8ce473fa4a22ddf13a2310ce372ec9b845969 100644 (file)
@@ -354,7 +354,6 @@ class StyleAction extends AbstractDatabaseObjectAction implements IToggleAction
                     }
 
                     // Create ICO file.
-                    require(WCF_DIR . 'lib/system/api/chrisjean/php-ico/class-php-ico.php');
                     (new \PHP_ICO($file->getLocation(), [
                         [16, 16],
                         [32, 32],