2009-02-21 11:04:50 +00:00
|
|
|
I18n.default_locale = 'en'
|
2012-11-18 17:41:31 +00:00
|
|
|
I18n.backend = Redmine::I18n::Backend.new
|
2008-07-04 17:58:14 +00:00
|
|
|
|
|
|
|
require 'redmine'
|
2012-04-25 17:17:49 +00:00
|
|
|
|
2012-04-28 12:00:45 +00:00
|
|
|
# Load the secret token from the Redmine configuration file
|
|
|
|
secret = Redmine::Configuration['secret_token']
|
|
|
|
if secret.present?
|
|
|
|
RedmineApp::Application.config.secret_token = secret
|
|
|
|
end
|
|
|
|
|
2013-05-16 10:55:41 +00:00
|
|
|
if Object.const_defined?(:OpenIdAuthentication)
|
|
|
|
openid_authentication_store = Redmine::Configuration['openid_authentication_store']
|
|
|
|
OpenIdAuthentication.store =
|
|
|
|
openid_authentication_store.present? ?
|
|
|
|
openid_authentication_store : :memory
|
|
|
|
end
|
|
|
|
|
2012-04-25 17:17:49 +00:00
|
|
|
Redmine::Plugin.load
|
2012-04-28 11:07:59 +00:00
|
|
|
unless Redmine::Configuration['mirror_plugins_assets_on_startup'] == false
|
|
|
|
Redmine::Plugin.mirror_assets
|
|
|
|
end
|