FEATURE: warn the admin whenever we disable the download_remote_images_to_local site setting

This commit is contained in:
Régis Hanol
2014-04-23 12:43:10 +02:00
parent c39c1ffdf8
commit b61abe3107
3 changed files with 37 additions and 21 deletions

View File

@ -236,6 +236,7 @@ class CookedPostProcessor
def disable_if_low_on_disk_space
if available_disk_space < SiteSetting.download_remote_images_threshold
SiteSetting.download_remote_images_to_local = false
SystemMessage.create(Discourse.site_contact_user, :download_remote_images_disabled)
return true
end
false