From db6d48b266064476469ec27b2b7b2e6c06fe52f3 Mon Sep 17 00:00:00 2001 From: Godin <mandrikov@gmail.com> Date: Mon, 1 Nov 2010 12:52:46 +0000 Subject: SONAR-1913: Property renamed to "sonar.updatecenter.activate". --- .../src/main/webapp/WEB-INF/app/controllers/updatecenter_controller.rb | 2 +- sonar-server/src/main/webapp/WEB-INF/app/views/layouts/_layout.html.erb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'sonar-server') diff --git a/sonar-server/src/main/webapp/WEB-INF/app/controllers/updatecenter_controller.rb b/sonar-server/src/main/webapp/WEB-INF/app/controllers/updatecenter_controller.rb index be17f0b9b4c..6a84b0fa634 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/controllers/updatecenter_controller.rb +++ b/sonar-server/src/main/webapp/WEB-INF/app/controllers/updatecenter_controller.rb @@ -124,7 +124,7 @@ class UpdatecenterController < ApplicationController end def updatecenter_activated - update_center_activated = java_facade.getConfigurationValue('sonar.updatecenter') || 'true'; + update_center_activated = java_facade.getConfigurationValue('sonar.updatecenter.activate') || 'true'; if update_center_activated!='true' redirect_to home_url end diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/layouts/_layout.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/layouts/_layout.html.erb index a617eaec873..e223270877a 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/views/layouts/_layout.html.erb +++ b/sonar-server/src/main/webapp/WEB-INF/app/views/layouts/_layout.html.erb @@ -76,7 +76,7 @@ <li class="<%= 'selected' if request.request_uri.include?('/settings') -%>"><a href="<%= ApplicationController.root_context -%>/settings/index">Settings</a></li> <li class="<%= 'selected' if controller.controller_path=='backup' -%>"><a href="<%= ApplicationController.root_context -%>/backup">Backup</a></li> <li class="<%= 'selected' if controller.controller_path=='system' -%>"><a href="<%= ApplicationController.root_context -%>/system">System info</a></li> - <% update_center_activated = controller.java_facade.getConfigurationValue('sonar.updatecenter') || 'true'; + <% update_center_activated = controller.java_facade.getConfigurationValue('sonar.updatecenter.activate') || 'true'; if update_center_activated=='true' %> <li class="<%= 'selected' if controller.controller_path=='updatecenter' -%>"><a href="<%= ApplicationController.root_context -%>/updatecenter">Upgrades (BETA)</a></li> <% end %> -- cgit v1.2.3