From 2389206cbce640cc320b4296a96e0c7c8e99378e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Thu, 8 Jul 2021 09:25:20 +0200 Subject: [PATCH] Do not use the cache in update_com.woltlab.wcf_5.4_styleCoverPhoto.php --- .../acp/update_com.woltlab.wcf_5.4_styleCoverPhoto.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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; } -- 2.20.1