Simplify https condition as we already know this.
This commit is contained in:
@@ -676,9 +676,7 @@ class PMA_Config
|
||||
if (substr($pma_absolute_uri, 0, 7) != 'http://'
|
||||
&& substr($pma_absolute_uri, 0, 8) != 'https://') {
|
||||
$pma_absolute_uri =
|
||||
(PMA_getenv('HTTPS') && strtolower(PMA_getenv('HTTPS')) != 'off'
|
||||
? 'https'
|
||||
: 'http')
|
||||
($is_https ? 'https' : 'http')
|
||||
. ':' . (substr($pma_absolute_uri, 0, 2) == '//' ? '' : '//')
|
||||
. $pma_absolute_uri;
|
||||
}
|
||||
|
Reference in New Issue
Block a user