From 2f873ac224bc228cd037416126e161f2988b1902 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Fri, 20 Mar 2015 14:09:56 +0100 Subject: [PATCH] Force stylesheets to be compiled in the order the packages have been installed --- .../install/files/lib/system/style/StyleCompiler.class.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/wcfsetup/install/files/lib/system/style/StyleCompiler.class.php b/wcfsetup/install/files/lib/system/style/StyleCompiler.class.php index 404b2cf34b..2088b99330 100644 --- a/wcfsetup/install/files/lib/system/style/StyleCompiler.class.php +++ b/wcfsetup/install/files/lib/system/style/StyleCompiler.class.php @@ -54,9 +54,10 @@ class StyleCompiler extends SingletonFactory { $conditions = new PreparedStatementConditionBuilder(); $conditions->add("filename REGEXP ?", array('style/([a-zA-Z0-9\_\-\.]+)\.less')); - $sql = "SELECT filename, application - FROM wcf".WCF_N."_package_installation_file_log - ".$conditions; + $sql = "SELECT filename, application + FROM wcf".WCF_N."_package_installation_file_log + ".$conditions." + ORDER BY packageID"; $statement = WCF::getDB()->prepareStatement($sql); $statement->execute($conditions->getParameters()); $files = array(); -- 2.20.1