Force stylesheets to be compiled in the order the packages have been installed
authorAlexander Ebert <ebert@woltlab.com>
Fri, 20 Mar 2015 13:09:56 +0000 (14:09 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Fri, 20 Mar 2015 13:09:56 +0000 (14:09 +0100)
wcfsetup/install/files/lib/system/style/StyleCompiler.class.php

index 404b2cf34b9916d0cd1d8a231d52bae85ff09665..2088b99330e8aeeaedd4f73ff9126a3b782a0a81 100644 (file)
@@ -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();