mirror of
https://github.com/mrclay/minify.git
synced 2025-08-16 02:54:33 +02:00
use origin function instead of alias
This commit is contained in:
@@ -129,7 +129,7 @@ class Minify_ClosureCompiler
|
|||||||
$this->getOptionsCommandLine($userOptions)
|
$this->getOptionsCommandLine($userOptions)
|
||||||
);
|
);
|
||||||
|
|
||||||
return join(' ', $args) . ' ' . escapeshellarg($tmpFile);
|
return implode(' ', $args) . ' ' . escapeshellarg($tmpFile);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@@ -63,7 +63,7 @@ class Minify_NailgunClosureCompiler extends Minify_ClosureCompiler
|
|||||||
$server = array(
|
$server = array(
|
||||||
self::$javaExecutable,
|
self::$javaExecutable,
|
||||||
'-server',
|
'-server',
|
||||||
'-cp', join(':', $classPath),
|
'-cp', implode(':', $classPath),
|
||||||
self::NG_SERVER,
|
self::NG_SERVER,
|
||||||
);
|
);
|
||||||
|
|
||||||
@@ -101,7 +101,7 @@ class Minify_NailgunClosureCompiler extends Minify_ClosureCompiler
|
|||||||
|
|
||||||
private function startServer()
|
private function startServer()
|
||||||
{
|
{
|
||||||
$serverCommand = join(' ', $this->getServerCommandLine());
|
$serverCommand = implode(' ', $this->getServerCommandLine());
|
||||||
$psCommand = $this->shell("ps -o cmd= -C " . self::$javaExecutable);
|
$psCommand = $this->shell("ps -o cmd= -C " . self::$javaExecutable);
|
||||||
if (array_search($serverCommand, $psCommand) !== false) {
|
if (array_search($serverCommand, $psCommand) !== false) {
|
||||||
// already started!
|
// already started!
|
||||||
|
Reference in New Issue
Block a user