Skip to content

Commit

Permalink
Merge pull request #122 from andrey-helldar/10.x
Browse files Browse the repository at this point in the history
[10.x] Fix `Undefined variable: $inline_file`
  • Loading branch information
Andrey Helldar committed Jun 1, 2021
2 parents 6a7ebae + 2bfeb55 commit 288cc0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Services/Processors/Processor.php
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ protected function setSourcePath(string $filename, bool $is_inline): void
$inline_file = $directory . '/' . $name . '-inline.' . $extension;
}

$this->source_path = File::exists($path . '/' . $inline_file)
$this->source_path = $is_inline && File::exists($path . '/' . $inline_file)
? $path . '/' . $inline_file
: $path . '/' . $filename;
}
Expand Down

0 comments on commit 288cc0d

Please sign in to comment.