com web/php: Logic++: include/site.inc
| From: | Hannes Magnusson | Date: | Wed, 18 Dec 2013 19:35:19 +0000 |
| Subject: | com web/php: Logic++: include/site.inc | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-17722@lists.php.net to get a copy of this message | ||
Commit: b5f9af79fa982b55bf73d915a4e95636593d2e0a
Author: Hannes Magnusson <bjori@mongodb.com> Wed, 18 Dec 2013 11:35:19 -0800
Parents: 14c7b07c47c7913bf84bb6684f973f2689aa4633
Branches: master
Link: http://git.php.net/?p=web/php.git;a=commitdiff;h=b5f9af79fa982b55bf73d915a4e95636593d2e0a
Log:
Logic++
Changed paths:
M include/site.inc
Diff:
diff --git a/include/site.inc b/include/site.inc
index 6533a63..11421eb 100644
--- a/include/site.inc
+++ b/include/site.inc
@@ -495,9 +495,9 @@ function get_shortname($page) {
// the name of the Apache vhost.
if (!isset($_SERVER["HTTPS"]) || $_SERVER["HTTPS"] != "on") {
- $proto = "https";
-} else {
$proto = "http";
+} else {
+ $proto = "https";
}
if($_SERVER["SERVER_PORT"] != '80' || $_SERVER["SERVER_PORT"] != 443)
{