Another Option

if you want to be judicious w/ adding lines of code, I offer this alternative.
This commit is contained in:
Robert Sink
2015-06-06 01:13:39 -04:00
parent e342ce9788
commit c9e67c3bfe

View File

@@ -681,12 +681,8 @@ class DirectoryLister {
protected function _getAppUrl() {
// Get the server protocol
if (!empty($_SERVER['HTTPS'])) {
if ($_SERVER['HTTPS']!=="off" {
$protocol = 'https://';
} else {
$protocol = 'http://';
}
if (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS']!=="off") {
$protocol = 'https://';
} else {
$protocol = 'http://';
}