Download Google fonts before validating the individual SCSS
authorTim Düsterhus <duesterhus@woltlab.com>
Wed, 3 Feb 2021 14:57:05 +0000 (15:57 +0100)
committerTim Düsterhus <duesterhus@woltlab.com>
Wed, 3 Feb 2021 14:57:05 +0000 (15:57 +0100)
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

index dea52fdaa4b81cf45eaf1c24c2c2ed2306c4a546..a51217184d5071328a5a6a543cd9535a3618bc47 100644 (file)
@@ -489,13 +489,13 @@ class StyleAddForm extends AbstractForm {
                        $this->parseOverrides();
                }
                
+               $this->downloadGoogleFont();
+               
                $this->validateIndividualScss();
                
                $this->validateApiVersion();
                
                $this->validateUploads();
-               
-               $this->downloadGoogleFont();
        }
        
        /**