mirror of
https://github.com/mrclay/minify.git
synced 2025-08-09 15:46:34 +02:00
Merge pull request #24 from glensc/master
need only check readable for .jar file
This commit is contained in:
@@ -134,8 +134,8 @@ class Minify_YUICompressor {
|
|||||||
if (! is_file(self::$jarFile)) {
|
if (! is_file(self::$jarFile)) {
|
||||||
throw new Exception('Minify_YUICompressor : $jarFile('.self::$jarFile.') is not a valid file.');
|
throw new Exception('Minify_YUICompressor : $jarFile('.self::$jarFile.') is not a valid file.');
|
||||||
}
|
}
|
||||||
if (! is_executable(self::$jarFile)) {
|
if (! is_readable(self::$jarFile)) {
|
||||||
throw new Exception('Minify_YUICompressor : $jarFile('.self::$jarFile.') is not executable.');
|
throw new Exception('Minify_YUICompressor : $jarFile('.self::$jarFile.') is not readable.');
|
||||||
}
|
}
|
||||||
if (! is_dir(self::$tempDir)) {
|
if (! is_dir(self::$tempDir)) {
|
||||||
throw new Exception('Minify_YUICompressor : $tempDir('.self::$tempDir.') is not a valid direcotry.');
|
throw new Exception('Minify_YUICompressor : $tempDir('.self::$tempDir.') is not a valid direcotry.');
|
||||||
|
Reference in New Issue
Block a user