Simplify https condition as we already know this.

This commit is contained in:
Michal Čihař
2010-01-21 12:49:09 +00:00
parent 454d4e11c4
commit 6ca77a8b5e

View File

@@ -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;
}