Adds a few enhancements to the base importer
- Allows importing globally pinned topics - Doesn't restore the original value of a SiteSetting anymore if an importer changed its value - Allows all file extensions during the import - Adds the ability to import bookmarks
This commit is contained in:
parent
77f9d1e223
commit
53591ade00
4 changed files with 45 additions and 8 deletions
|
@ -61,15 +61,11 @@ class ImportScripts::Smf2 < ImportScripts::Base
|
|||
end
|
||||
|
||||
def execute
|
||||
authorized_extensions = SiteSetting.authorized_extensions
|
||||
SiteSetting.authorized_extensions = "*"
|
||||
import_groups
|
||||
import_users
|
||||
import_categories
|
||||
import_posts
|
||||
postprocess_posts
|
||||
ensure
|
||||
SiteSetting.authorized_extensions = authorized_extensions
|
||||
end
|
||||
|
||||
def import_groups
|
||||
|
|
Reference in a new issue