Rename FileHelper.is_image? -> FileHelper.is_supported_image?.

This commit is contained in:
Guo Xiang Tan
2018-09-10 10:22:45 +08:00
parent d59e635a77
commit e1b16e445e
11 changed files with 16 additions and 16 deletions

View File

@ -36,7 +36,7 @@ class UrlHelper
uri = URI.parse(url)
filename = File.basename(uri.path)
is_attachment = !FileHelper.is_image?(filename)
is_attachment = !FileHelper.is_supported_image?(filename)
no_cdn = SiteSetting.login_required || SiteSetting.prevent_anons_from_downloading_files