From 0b74ae02a476746a2b13e46e9a7868270548f7d0 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Sat, 13 Nov 2021 14:04:59 +0100 Subject: [PATCH] Extract the icon names from the changed file path --- .../install/files/lib/system/style/StyleHandler.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wcfsetup/install/files/lib/system/style/StyleHandler.class.php b/wcfsetup/install/files/lib/system/style/StyleHandler.class.php index 4358b34039..89d4bda079 100644 --- a/wcfsetup/install/files/lib/system/style/StyleHandler.class.php +++ b/wcfsetup/install/files/lib/system/style/StyleHandler.class.php @@ -303,8 +303,8 @@ class StyleHandler extends SingletonFactory */ protected function parseVariables() { - $content = \file_get_contents(WCF_DIR . 'style/icon/_variables.scss'); - \preg_match_all('~\$fa-var-([a-z0-9\-]+)~', $content, $matches); + $content = \file_get_contents(WCF_DIR . 'style/font-awesome/_variables.scss'); + \preg_match_all('~\$fa-var-([a-z0-9\-]{2,})~', $content, $matches); $this->icons = $matches[1]; } -- 2.20.1