mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-03-05 15:48:35 -05:00
Fix config.php (#2751)
This commit is contained in:
@@ -66,7 +66,7 @@ $config['db_log_enabled'] = FALSE;
|
||||
|
|
||||
*/
|
||||
$config['base_url'] = ((isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') || (isset($_ENV['FORCE_HTTPS']) && $_ENV['FORCE_HTTPS'] == 'true')) ? 'https' : 'http';
|
||||
$config['base_url'] .= '://' . (ENVIRONMENT == "testing") ? 'localhost' : $_SERVER['HTTP_HOST'] ;
|
||||
$config['base_url'] .= '://' . ((ENVIRONMENT == "testing") ? 'localhost' : $_SERVER['HTTP_HOST']) ;
|
||||
$config['base_url'] .= str_replace(basename($_SERVER['SCRIPT_NAME']), '', $_SERVER['SCRIPT_NAME']);
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user