Skip to content

Commit 02a3fd4

Browse files
authored
Merge pull request #1 from kylekatarnls/kylekatarnls-default-path
Get default path if missing
2 parents 5cc17fd + ddd92e9 commit 02a3fd4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/NodejsPhpFallback/Uglify.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,8 @@ public function compile()
8888
{
8989
$language = $this->getMode();
9090
list($programDirectory, $programFile) = $this->programs[$language];
91-
$name = $this->path ? basename($this->path) : null;
91+
$path = $this->getPath();
92+
$name = $path ? basename($path) : null;
9293

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

0 commit comments

Comments
 (0)