1
0
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:
Steve Clay 2012-03-29 13:01:47 -07:00
commit dfdcdf874a

View File

@ -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.');