Skip to content
Permalink
Browse files

Fix issues auto-detecting domain installation option if not set

  • Loading branch information...
chrisgraham committed May 24, 2019
1 parent 06a853b commit 74946d238a0d240ebfb13e4367ce698e182f798c
Showing with 3 additions and 2 deletions.
  1. +3 −2 sources/global2.php
@@ -1097,8 +1097,9 @@ function get_domain()
// Derive from base URL
if (!empty($SITE_INFO['base_url'])) {
$matches = array();
preg_match('#://([^/\#]+)#', $SITE_INFO['base_url'], $matches);
$ret = preg_replace('#^www\.#', '', $matches[1]);
if (preg_match('#://([^/\#:]+)#', $SITE_INFO['base_url'], $matches) != 0) {
return preg_replace('#^www\.#', '', $matches[1]);
}
}
// Derive from other possibilities. Note that we can't use cms_srv due to bootstrap order (it's in global3.php)

0 comments on commit 74946d2

Please sign in to comment.
You can’t perform that action at this time.