diff options
author | Julien HENRY <julien.henry@sonarsource.com> | 2013-09-27 15:01:02 +0200 |
---|---|---|
committer | Julien HENRY <julien.henry@sonarsource.com> | 2013-09-27 15:01:59 +0200 |
commit | a2b26d1aa01acdf090369ac451c464d50dbe430a (patch) | |
tree | 78a8a703e4036eea274a4fde5adbce74d8550168 | |
parent | 42cab973f76e48d80b2d5fb621aaa983ad940254 (diff) | |
download | sonarqube-a2b26d1aa01acdf090369ac451c464d50dbe430a.tar.gz sonarqube-a2b26d1aa01acdf090369ac451c464d50dbe430a.zip |
SONAR-4404 Return settings default value in ruby configuration() method
-rw-r--r-- | sonar-server/src/main/webapp/WEB-INF/app/helpers/application_helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sonar-server/src/main/webapp/WEB-INF/app/helpers/application_helper.rb b/sonar-server/src/main/webapp/WEB-INF/app/helpers/application_helper.rb index a7d7f8523a4..fec2f4591ee 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/helpers/application_helper.rb +++ b/sonar-server/src/main/webapp/WEB-INF/app/helpers/application_helper.rb @@ -135,7 +135,7 @@ module ApplicationHelper end def configuration(key, default = nil) - prop_value = Java::OrgSonarServerUi::JRubyFacade.getInstance().getContainer().getComponentByType(Java::OrgApacheCommonsConfiguration::Configuration.java_class).getProperty(key) + prop_value = Java::OrgSonarServerUi::JRubyFacade.getInstance().getConfigurationValue(key) prop_value.nil? ? default : prop_value end |