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:
Gerhard Schlager 2015-01-31 15:42:39 +01:00
parent 3948ea89eb
commit 827daf7f0f
3 changed files with 2 additions and 8 deletions

View file

@ -1,8 +1,4 @@
require File.expand_path(File.dirname(__FILE__) + "/../../config/environment")
require File.expand_path(File.dirname(__FILE__) + "/base.rb")
require_dependency 'url_helper'
require_dependency 'file_helper'
require "mysql2"
@ -313,7 +309,7 @@ class ImportScripts::PhpBB3 < ImportScripts::Base
s.gsub!(/\[list=1\](.*?)\[\/list:o\]/m, '[ol]\1[/ol]')
# convert *-tags to li-tags so bbcode-to-md can do its magic on phpBB's lists:
s.gsub!(/\[\*\](.*?)\[\/\*:m\]/, '[li]\1[/li]')
s
end