}
/**
- * @param $file string
+ * @param string $file
* @return bool|string
*/
public static function getMimeType( $file ) {
);
$url = $match['file'] . $match['query'];
- $file = $local . $match['file'];
+ $file = "{$local}/{$match['file']}";
if (
!self::isRemoteUrl( $url ) && !self::isLocalUrl( $url )
&& file_exists( $file )
}, $source );
return $source;
-
}
/**