make protocol settings adaptive

This commit is contained in:
ghost 2023-04-24 02:32:03 +03:00
parent fcee7f62ef
commit 1d7031e4f7

View File

@ -11,7 +11,7 @@ error_reporting(E_ALL);
* Project domain, without slash on postfix * Project domain, without slash on postfix
* *
*/ */
define('WEBSITE_DOMAIN', (issue($_SERVER['HTTP_HOST']) ? 'http://' . $_SERVER['HTTP_HOST'] : '')); define('WEBSITE_DOMAIN', (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on' ? 'https' : 'http') . '://' . (!empty($_SERVER['HTTP_HOST']) ? $_SERVER['HTTP_HOST'] : ''));
/* /*
* Search results per page before show the read more link. * Search results per page before show the read more link.