Skip to content

Commit

Permalink
Merge pull request #1 from kylekatarnls/kylekatarnls-default-path
Browse files Browse the repository at this point in the history
Get default path if missing
  • Loading branch information
kylekatarnls authored Jun 21, 2017
2 parents 5cc17fd + ddd92e9 commit 02a3fd4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/NodejsPhpFallback/Uglify.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,8 @@ public function compile()
{
$language = $this->getMode();
list($programDirectory, $programFile) = $this->programs[$language];
$name = $this->path ? basename($this->path) : null;
$path = $this->getPath();
$name = $path ? basename($path) : null;

$path = sys_get_temp_dir() . DIRECTORY_SEPARATOR . $name;
file_put_contents($path, $this->getSource());
Expand Down

0 comments on commit 02a3fd4

Please sign in to comment.