From a82d18d2f8e13edab296daaf2bda917381e78810 Mon Sep 17 00:00:00 2001
From: Bart Visscher <bartv@thisnet.nl>
Date: Thu, 7 Feb 2013 21:13:57 +0100
Subject: [PATCH] Fill oc_webroot with the expected value

---
 core/js/js.js | 1 +
 1 file changed, 1 insertion(+)

diff --git a/core/js/js.js b/core/js/js.js
index 80914e954e..c137f734d9 100644
--- a/core/js/js.js
+++ b/core/js/js.js
@@ -8,6 +8,7 @@
 var oc_debug;
 var oc_webroot;
 var oc_requesttoken;
+oc_webroot = oc_webroot || location.pathname.substr(0, location.pathname.lastIndexOf('/'));
 if (oc_debug !== true || typeof console === "undefined" || typeof console.log === "undefined") {
 	if (!window.console) {
 		window.console = {};
-- 
GitLab