Index: trunk/phase3/includes/libs/CSSMin.php |
— | — | @@ -111,7 +111,8 @@ |
112 | 112 | // Try a couple of different ways to get the mime-type of a file, |
113 | 113 | // in order of preference |
114 | 114 | if ( $realpath |
115 | | - && function_exists( 'finfo_file' ) && function_exists( 'finfo_open' ) ) |
| 115 | + && function_exists( 'finfo_file' ) && function_exists( 'finfo_open' ) |
| 116 | + && defined( 'FILEINFO_MIME_TYPE' ) ) |
116 | 117 | { |
117 | 118 | // As of PHP 5.3, this is how you get the mime-type of a file; |
118 | 119 | // it uses the Fileinfo PECL extension |