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:
Gerhard Schlager
2015-03-13 21:24:11 +01:00
parent 77f9d1e223
commit 53591ade00
4 changed files with 45 additions and 8 deletions

View File

@ -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