Commit: ef10422ab224206d27cd59d7dcc19280a825c3a9 Author: Hannes Magnusson <[email protected]> Wed, 18 Dec 2013 11:35:19 -0800 Parents: 62ee90777740bb6dcc8fb04127f14425692ad86e Branches: master
Link: http://git.php.net/?p=web/php.git;a=commitdiff;h=ef10422ab224206d27cd59d7dcc19280a825c3a9 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) { -- PHP Webmaster List Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
