mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 22:43:33 +08:00
FIX: The order of includes in the base importer was wrong.
https://meta.discourse.org/t/importer-for-simple-machines-2-forums/17656/58
This commit is contained in:
@ -11,10 +11,10 @@ if ARGV.include?('bbcode-to-md')
|
||||
require 'ruby-bbcode-to-md'
|
||||
end
|
||||
|
||||
require_relative '../../config/environment'
|
||||
require_dependency 'url_helper'
|
||||
require_dependency 'file_helper'
|
||||
|
||||
|
||||
module ImportScripts; end
|
||||
|
||||
class ImportScripts::Base
|
||||
@ -22,7 +22,6 @@ class ImportScripts::Base
|
||||
include ActionView::Helpers::NumberHelper
|
||||
|
||||
def initialize
|
||||
require_relative '../../config/environment'
|
||||
preload_i18n
|
||||
|
||||
@bbcode_to_md = true if ARGV.include?('bbcode-to-md')
|
||||
|
Reference in New Issue
Block a user