From: Tim Düsterhus Date: Thu, 8 Jul 2021 07:25:20 +0000 (+0200) Subject: Do not use the cache in update_com.woltlab.wcf_5.4_styleCoverPhoto.php X-Git-Tag: 5.4.0_RC_2~2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=2389206cbce640cc320b4296a96e0c7c8e99378e;p=GitHub%2FWoltLab%2FWCF.git Do not use the cache in update_com.woltlab.wcf_5.4_styleCoverPhoto.php --- diff --git a/wcfsetup/install/files/acp/update_com.woltlab.wcf_5.4_styleCoverPhoto.php b/wcfsetup/install/files/acp/update_com.woltlab.wcf_5.4_styleCoverPhoto.php index ef59734f4d..4d6aba89fd 100644 --- a/wcfsetup/install/files/acp/update_com.woltlab.wcf_5.4_styleCoverPhoto.php +++ b/wcfsetup/install/files/acp/update_com.woltlab.wcf_5.4_styleCoverPhoto.php @@ -10,10 +10,13 @@ */ use wcf\data\style\StyleEditor; +use wcf\data\style\StyleList; use wcf\system\package\SplitNodeException; -use wcf\system\style\StyleHandler; -foreach (StyleHandler::getInstance()->getStyles() as $style) { +$styleList = new StyleList(); +$styleList->readObjects(); + +foreach ($styleList as $style) { if (!$style->coverPhotoExtension) { continue; }