Skip to content
Snippets Groups Projects
Commit a6179902 authored by echicken's avatar echicken
Browse files

Just use http_request.host, no need to get port from ini file.

Will probably fix deep-linking problem on Deuce's system.
parent 43285188
No related branches found
No related tags found
No related merge requests found
......@@ -19,9 +19,8 @@ if(typeof http_request.query.sub != "undefined" && http_request.query.sub != 'ma
print("<script type='text/javascript'>");
print(
format(
"loadThreads('http://%s:%s%s/forum-async.ssjs', '%s', %s);",
"loadThreads('http://%s%s/forum-async.ssjs', '%s', %s);",
http_request.host,
webIni.HTTPPort,
webIni.appendURL,
http_request.query.sub,
(typeof http_request.query.thread == "undefined") ? true : false
......@@ -30,9 +29,8 @@ if(typeof http_request.query.sub != "undefined" && http_request.query.sub != 'ma
if(typeof http_request.query.thread != "undefined") {
print(
format(
"loadThread('http://%s:%s%s/forum-async.ssjs', '%s', '%s', %s);",
"loadThread('http://%s%s/forum-async.ssjs', '%s', '%s', %s);",
http_request.host,
webIni.HTTPPort,
webIni.appendURL,
http_request.query.sub,
http_request.query.thread,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment