aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-07-25 15:43:28 -0700
committerFriendika <info@friendika.com>2011-07-25 15:43:28 -0700
commit21058cdb471cb515e49b1a8a5c4fb3e0718d7a74 (patch)
tree6baa56fa5871e0808ba2b3e5c01dcd311ec637dc
parent60ff58d7be6300ea15c77897df54818f5f5bee64 (diff)
downloadvolse-hubzilla-21058cdb471cb515e49b1a8a5c4fb3e0718d7a74.tar.gz
volse-hubzilla-21058cdb471cb515e49b1a8a5c4fb3e0718d7a74.tar.bz2
volse-hubzilla-21058cdb471cb515e49b1a8a5c4fb3e0718d7a74.zip
provide ability to use different port
-rw-r--r--boot.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/boot.php b/boot.php
index e8dccd5f3..a72fbf673 100644
--- a/boot.php
+++ b/boot.php
@@ -1,6 +1,6 @@
<?php
-define ( 'FRIENDIKA_VERSION', '2.2.1051' );
+define ( 'FRIENDIKA_VERSION', '2.2.1052' );
define ( 'DFRN_PROTOCOL_VERSION', '2.21' );
define ( 'DB_UPDATE_VERSION', 1076 );
@@ -270,7 +270,8 @@ class App {
if(x($_SERVER,'SERVER_NAME')) {
$this->hostname = $_SERVER['SERVER_NAME'];
-
+ if(x($_SERVER,'SERVER_PORT') && $_SERVER['SERVER_PORT'] != 80 && $_SERVER['SERVER_PORT'] != 443)
+ $this->hostname .= ':' . $_SERVER['SERVER_PORT'];
/**
* Figure out if we are running at the top of a domain
* or in a sub-directory and adjust accordingly