From: Alexander Ebert Date: Wed, 2 Mar 2016 17:09:50 +0000 (+0100) Subject: Possible fix for messed up file order on linux X-Git-Tag: 3.0.0_Beta_1~2030^2~65 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=1381bc43b045e4963a587626db5daf5504242ebc;p=GitHub%2FWoltLab%2FWCF.git Possible fix for messed up file order on linux Fixes #1981 --- diff --git a/wcfsetup/install/files/lib/system/style/StyleCompiler.class.php b/wcfsetup/install/files/lib/system/style/StyleCompiler.class.php index 4c7723849a..b019aaf12d 100644 --- a/wcfsetup/install/files/lib/system/style/StyleCompiler.class.php +++ b/wcfsetup/install/files/lib/system/style/StyleCompiler.class.php @@ -89,7 +89,11 @@ class StyleCompiler extends SingletonFactory { } closedir($handle); + + // directory order is not deterministic in some cases + sort($files); } + // TESTING ONLY while ($row = $statement->fetchArray()) { @@ -176,6 +180,9 @@ class StyleCompiler extends SingletonFactory { } closedir($handle); + + // directory order is not deterministic in some cases + sort($files); } $additional = ['layout'];