components/com_banners/helpers/banner.php
/**
	 * Checks if a URL is an image
	 *
	 * @param string
	 * @return URL
	 */
Checks if a URL is an image
@param string
@return URL
Checks if a URL is an image @param string @return URL
public static function isImage($url)
	{
		$result = preg_match('#\.(?:bmp|gif|jpe?g|png)$#i', $url);
		return $result;
	}
public static function isImage ( $ url ) { $ result = preg_match ( '#\.(?:bmp|gif|jpe?g|png)$#i' , $ url ) ; return $ result ; }
Checks if a URL is an image
 @param string
 @return URL
Checks if a URL is an image @param string @return URL