dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9270d49
)
Detect port the server is running on; needed for redirects and other full URLs
author
Brion Vibber
<brion@users.mediawiki.org>
Sat, 13 Mar 2004 11:28:05 +0000
(11:28 +0000)
committer
Brion Vibber
<brion@users.mediawiki.org>
Sat, 13 Mar 2004 11:28:05 +0000
(11:28 +0000)
includes/DefaultSettings.php
patch
|
blob
|
history
diff --git
a/includes/DefaultSettings.php
b/includes/DefaultSettings.php
index
332d486
..
11eae78
100644
(file)
--- a/
includes/DefaultSettings.php
+++ b/
includes/DefaultSettings.php
@@
-11,7
+11,9
@@
$wgVersion = "1.3.0pre-alpha";
$wgSitename = "MediaWiki"; # Please customize!
$wgMetaNamespace = FALSE; # will be same as you set $wgSitename
-$wgServer = "http://" . getenv( "SERVER_NAME" );
+$wgServer = "http://" . $_SERVER["SERVER_NAME"];
+if( $_SERVER["SERVER_PORT"] != 80 ) $wgServer .= ":" . $_SERVER["SERVER_PORT"];
+
$wgScriptPath = "/wiki";
# ATTN: Old installations used wiki.phtml and redirect.phtml -