diff --git a/modules/system/classes/CombineAssets.php b/modules/system/classes/CombineAssets.php index 53718d7df..dd0081627 100644 --- a/modules/system/classes/CombineAssets.php +++ b/modules/system/classes/CombineAssets.php @@ -496,7 +496,10 @@ class CombineAssets if ($extension == 'less') { $cssPath = $path.'/../css'; - if (File::isDirectory(File::symbolizePath($cssPath))) { + if ( + strtolower(basename($path)) == 'less' && + File::isDirectory(File::symbolizePath($cssPath)) + ) { $path = $cssPath; } $destination = $path.'/'.$file.'.css';