From ddd92e9c425c32adfe79e70f24180df0288954d2 Mon Sep 17 00:00:00 2001 From: Kyle Date: Wed, 21 Jun 2017 16:22:19 +0200 Subject: [PATCH] Get default path if missing --- src/NodejsPhpFallback/Uglify.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/NodejsPhpFallback/Uglify.php b/src/NodejsPhpFallback/Uglify.php index beb348c..ac03981 100644 --- a/src/NodejsPhpFallback/Uglify.php +++ b/src/NodejsPhpFallback/Uglify.php @@ -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());