From bce66adedeff539c6a38619dfca14eee71551d4a Mon Sep 17 00:00:00 2001
From: deuce <>
Date: Mon, 30 Sep 2013 04:55:00 +0000
Subject: [PATCH] Remove hard-coded relative path.

---
 web/root/ecwebv3/forum-async.ssjs     | 4 ++--
 web/root/ecwebv3/pages/002-forum.ssjs | 4 ++--
 web/root/ecwebv3/pages/999-email.ssjs | 4 ++--
 3 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/web/root/ecwebv3/forum-async.ssjs b/web/root/ecwebv3/forum-async.ssjs
index 88552e1993..e187c73f97 100644
--- a/web/root/ecwebv3/forum-async.ssjs
+++ b/web/root/ecwebv3/forum-async.ssjs
@@ -2,7 +2,7 @@
 // echicken -at- bbs.electronicchicken.com
 
 load('webInit.ssjs');
-load("../web/lib/forum.ssjs");
+load(session.web_root_dir+"/lib/forum.ssjs");
 
 if(typeof http_request.query.postmessage != "undefined") {
 	var x = postMessage(
@@ -26,4 +26,4 @@ if(typeof http_request.query.postmessage != "undefined") {
 		printThreads(http_request.query.sub);
 	else if(typeof http_request.query.sub != "undefined" && typeof http_request.query.thread != "undefined")
 		printThread(http_request.query.sub, parseInt(http_request.query.thread));
-}
\ No newline at end of file
+}
diff --git a/web/root/ecwebv3/pages/002-forum.ssjs b/web/root/ecwebv3/pages/002-forum.ssjs
index ab8f635357..8f8c068750 100644
--- a/web/root/ecwebv3/pages/002-forum.ssjs
+++ b/web/root/ecwebv3/pages/002-forum.ssjs
@@ -3,7 +3,7 @@
 // echicken -at- bbs.electronicchicken.com
 
 load('webInit.ssjs');
-load("../web/lib/forum.ssjs");
+load(session.web_root_dir+"/lib/forum.ssjs");
 
 print("<span class='title'>Forum</span><br /><br />");
 
@@ -43,4 +43,4 @@ if(typeof http_request.query.sub != "undefined" && http_request.query.sub != 'ma
 		);
 	}
 	print("</script>");
-}
\ No newline at end of file
+}
diff --git a/web/root/ecwebv3/pages/999-email.ssjs b/web/root/ecwebv3/pages/999-email.ssjs
index 9a9f3f1177..6e7a0f07bb 100644
--- a/web/root/ecwebv3/pages/999-email.ssjs
+++ b/web/root/ecwebv3/pages/999-email.ssjs
@@ -3,7 +3,7 @@
 // echicken -at- bbs.electronicchicken.com
 
 load('webInit.ssjs');
-load("../web/lib/forum.ssjs");
+load(session.web_root_dir+"/lib/forum.ssjs");
 
 if(user.alias != webIni.WebGuest) {
 
@@ -51,4 +51,4 @@ if(user.alias != webIni.WebGuest) {
 	}
 	print("</script>");
 
-}
\ No newline at end of file
+}
-- 
GitLab