mirror of
https://github.com/discourse/discourse.git
synced 2025-06-01 03:54:33 +08:00
FEATURE: new 'backup_frequency' site setting
This commit is contained in:
@ -111,6 +111,10 @@ class SiteSetting < ActiveRecord::Base
|
||||
false
|
||||
end
|
||||
|
||||
def self.backups_enabled?
|
||||
SiteSetting.backup_frequency > 0
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
# == Schema Information
|
||||
|
Reference in New Issue
Block a user