From 6012e5669eac41ccd79c85bc392778a4177ecf3b Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Wed, 4 Dec 2013 17:45:09 +0100 Subject: [PATCH] Fixes inclusion of application plugin LESS files Closes #1581 --- .../files/lib/system/style/StyleCompiler.class.php | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/wcfsetup/install/files/lib/system/style/StyleCompiler.class.php b/wcfsetup/install/files/lib/system/style/StyleCompiler.class.php index f93a269059..c2fff5e2c6 100644 --- a/wcfsetup/install/files/lib/system/style/StyleCompiler.class.php +++ b/wcfsetup/install/files/lib/system/style/StyleCompiler.class.php @@ -1,5 +1,6 @@ add("file_log.filename REGEXP ?", array('style/([a-zA-Z0-9\_\-\.]+)\.less')); + $conditions->add("filename REGEXP ?", array('style/([a-zA-Z0-9\_\-\.]+)\.less')); - $sql = "SELECT file_log.filename, package.packageDir - FROM wcf".WCF_N."_package_installation_file_log file_log - LEFT JOIN wcf".WCF_N."_package package - ON (file_log.packageID = package.packageID) + $sql = "SELECT filename, application + FROM wcf".WCF_N."_package_installation_file_log file_log ".$conditions; $statement = WCF::getDB()->prepareStatement($sql); $statement->execute($conditions->getParameters()); $files = array(); while ($row = $statement->fetchArray()) { - $files[] = WCF_DIR.$row['packageDir'].$row['filename']; + $files[] = Application::getDirectory($row['application']).$row['filename']; } // get style variables -- 2.20.1