Chris@0: I18n.default_locale = 'en' Chris@1115: I18n.backend = Redmine::I18n::Backend.new Chris@0: Chris@0: require 'redmine' Chris@1115: Chris@1115: # Load the secret token from the Redmine configuration file Chris@1115: secret = Redmine::Configuration['secret_token'] Chris@1115: if secret.present? Chris@1115: RedmineApp::Application.config.secret_token = secret Chris@1115: end Chris@1115: Chris@1464: if Object.const_defined?(:OpenIdAuthentication) Chris@1464: openid_authentication_store = Redmine::Configuration['openid_authentication_store'] Chris@1464: OpenIdAuthentication.store = Chris@1464: openid_authentication_store.present? ? Chris@1464: openid_authentication_store : :memory Chris@1464: end Chris@1464: Chris@1115: Redmine::Plugin.load Chris@1115: unless Redmine::Configuration['mirror_plugins_assets_on_startup'] == false Chris@1115: Redmine::Plugin.mirror_assets Chris@1115: end