Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/gitlab/pages/virtual_host_finder.rb')
-rw-r--r--lib/gitlab/pages/virtual_host_finder.rb5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/gitlab/pages/virtual_host_finder.rb b/lib/gitlab/pages/virtual_host_finder.rb
index 5fec60188f8..d5e2159fb52 100644
--- a/lib/gitlab/pages/virtual_host_finder.rb
+++ b/lib/gitlab/pages/virtual_host_finder.rb
@@ -10,13 +10,12 @@ module Gitlab
def execute
return if host.blank?
- gitlab_host = ::Settings.pages.host.downcase.prepend(".")
+ gitlab_host = ::Gitlab.config.pages.host.downcase.prepend(".")
if host.ends_with?(gitlab_host)
name = host.delete_suffix(gitlab_host)
- by_namespace_domain(name) ||
- by_unique_domain(name)
+ by_unique_domain(name) || by_namespace_domain(name)
else
by_custom_domain(host)
end