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