mirror of
https://github.com/flarum/core.git
synced 2025-10-14 08:24:28 +02:00
Fix detection of whether or not an asset file is "empty"
We can't rely on files/strings for this, since the Locale JsCompiler doesn't use either, but still has content.
This commit is contained in:
@@ -38,6 +38,10 @@ class LessCompiler extends RevisionCompiler
|
||||
*/
|
||||
public function compile()
|
||||
{
|
||||
if (! count($this->files) || ! count($this->strings)) {
|
||||
return;
|
||||
}
|
||||
|
||||
ini_set('xdebug.max_nesting_level', 200);
|
||||
|
||||
$parser = new Less_Parser([
|
||||
|
Reference in New Issue
Block a user