english/administrator/components/com_media/helpers/media.php
/**
	 * Checks if the file is an image
	 * @param string The filename
	 * @return boolean
	 */
Checks if the file is an image
@param string The filename
@return boolean
Checks if the file is an image @param string The filename @return boolean
public static function isImage($fileName)
	{
		static $imageTypes = 'xcf|odg|gif|jpg|png|bmp';
		return preg_match("/\.(?:$imageTypes)$/i",$fileName);
	}
public static function isImage ( $ fileName ) { static $ imageTypes = 'xcf|odg|gif|jpg|png|bmp' ; return preg_match ( " /\.(?: $ imageTypes )$/i " , $ fileName ) ; }
Checks if the file is an image
 @param string The filename
 @return boolean
Checks if the file is an image @param string The filename @return boolean