From 1381bc43b045e4963a587626db5daf5504242ebc Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Wed, 2 Mar 2016 18:09:50 +0100 Subject: [PATCH] Possible fix for messed up file order on linux Fixes #1981 --- .../install/files/lib/system/style/StyleCompiler.class.php | 7 +++++++ 1 file changed, 7 insertions(+) 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']; -- 2.20.1