mirror of
https://github.com/typecho/typecho.git
synced 2025-03-14 15:09:41 +01:00
commit
ac1527ce43
@ -219,7 +219,7 @@ class Typecho_Request
|
||||
{
|
||||
if (empty(self::$_urlPrefix)) {
|
||||
if (defined('__TYPECHO_URL_PREFIX__')) {
|
||||
self::$_urlPrefix == __TYPECHO_URL_PREFIX__;
|
||||
self::$_urlPrefix = __TYPECHO_URL_PREFIX__;
|
||||
} else if (!defined('__TYPECHO_CLI__')) {
|
||||
self::$_urlPrefix = (self::isSecure() ? 'https' : 'http') . '://'
|
||||
. (isset($_SERVER['HTTP_HOST']) ? $_SERVER['HTTP_HOST'] : $_SERVER['SERVER_NAME']);
|
||||
|
Loading…
x
Reference in New Issue
Block a user