@@ -1,5 +1,5 | |||||
1 |
# |
|
1 | # Redmine - project management software | |
2 |
# Copyright (C) 2006-20 |
|
2 | # Copyright (C) 2006-2011 Jean-Philippe Lang | |
3 | # |
|
3 | # | |
4 | # This program is free software; you can redistribute it and/or |
|
4 | # This program is free software; you can redistribute it and/or | |
5 | # modify it under the terms of the GNU General Public License |
|
5 | # modify it under the terms of the GNU General Public License | |
@@ -17,7 +17,7 | |||||
17 |
|
17 | |||
18 | class SettingsController < ApplicationController |
|
18 | class SettingsController < ApplicationController | |
19 | layout 'admin' |
|
19 | layout 'admin' | |
20 |
|
20 | |||
21 | before_filter :require_admin |
|
21 | before_filter :require_admin | |
22 |
|
22 | |||
23 | def index |
|
23 | def index | |
@@ -43,7 +43,7 class SettingsController < ApplicationController | |||||
43 |
|
43 | |||
44 | @guessed_host_and_path = request.host_with_port.dup |
|
44 | @guessed_host_and_path = request.host_with_port.dup | |
45 | @guessed_host_and_path << ('/'+ Redmine::Utils.relative_url_root.gsub(%r{^\/}, '')) unless Redmine::Utils.relative_url_root.blank? |
|
45 | @guessed_host_and_path << ('/'+ Redmine::Utils.relative_url_root.gsub(%r{^\/}, '')) unless Redmine::Utils.relative_url_root.blank? | |
46 |
|
46 | |||
47 | Redmine::Themes.rescan |
|
47 | Redmine::Themes.rescan | |
48 | end |
|
48 | end | |
49 | end |
|
49 | end |
General Comments 0
You need to be logged in to leave comments.
Login now