mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-18 18:46:17 +00:00
Adding env('HTTP_BASE') to get base domain
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4622 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
fb7c56024c
commit
85c5f0513a
1 changed files with 3 additions and 0 deletions
|
@ -991,6 +991,9 @@
|
|||
case 'CGI_MODE':
|
||||
return (substr(php_sapi_name(), 0, 3) == 'cgi');
|
||||
break;
|
||||
case 'HTTP_BASE':
|
||||
return preg_replace ('/^([^.])*/i', null, env('HTTP_HOST'));
|
||||
break;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue