From 7556c2996efa19fd4cff7bac4b70c125eef8fbdc Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Wed, 3 Feb 2021 15:57:05 +0100 Subject: [PATCH] Download Google fonts before validating the individual SCSS The individual SCSS will compile the style and this compiled CSS will later be used for the style itself. When first downloading a new Google font the font will not yet be available during this test, thus the necessary CSS will not be included which in turn will cause the font to fail to display. --- wcfsetup/install/files/lib/acp/form/StyleAddForm.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wcfsetup/install/files/lib/acp/form/StyleAddForm.class.php b/wcfsetup/install/files/lib/acp/form/StyleAddForm.class.php index dea52fdaa4..a51217184d 100644 --- a/wcfsetup/install/files/lib/acp/form/StyleAddForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/StyleAddForm.class.php @@ -489,13 +489,13 @@ class StyleAddForm extends AbstractForm { $this->parseOverrides(); } + $this->downloadGoogleFont(); + $this->validateIndividualScss(); $this->validateApiVersion(); $this->validateUploads(); - - $this->downloadGoogleFont(); } /** -- 2.20.1