annotate .svn/pristine/9b/9b70a0da66909fd302582ad52d93cadcfbb85d35.svn-base @ 1519:afce8026aaeb redmine-2.4-integration

Merge from branch "live"
author Chris Cannam
date Tue, 09 Sep 2014 09:34:53 +0100
parents 261b3d9a4903
children
rev   line source
Chris@1464 1 I18n.default_locale = 'en'
Chris@1464 2 I18n.backend = Redmine::I18n::Backend.new
Chris@1464 3
Chris@1464 4 require 'redmine'
Chris@1464 5
Chris@1464 6 # Load the secret token from the Redmine configuration file
Chris@1464 7 secret = Redmine::Configuration['secret_token']
Chris@1464 8 if secret.present?
Chris@1464 9 RedmineApp::Application.config.secret_token = secret
Chris@1464 10 end
Chris@1464 11
Chris@1464 12 if Object.const_defined?(:OpenIdAuthentication)
Chris@1464 13 openid_authentication_store = Redmine::Configuration['openid_authentication_store']
Chris@1464 14 OpenIdAuthentication.store =
Chris@1464 15 openid_authentication_store.present? ?
Chris@1464 16 openid_authentication_store : :memory
Chris@1464 17 end
Chris@1464 18
Chris@1464 19 Redmine::Plugin.load
Chris@1464 20 unless Redmine::Configuration['mirror_plugins_assets_on_startup'] == false
Chris@1464 21 Redmine::Plugin.mirror_assets
Chris@1464 22 end