aboutsummaryrefslogtreecommitdiff
path: root/js/lib/configuration.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/lib/configuration.js')
-rw-r--r--js/lib/configuration.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/js/lib/configuration.js b/js/lib/configuration.js
new file mode 100644
index 000000000..6e221c957
--- /dev/null
+++ b/js/lib/configuration.js
@@ -0,0 +1,10 @@
+elgg.provide('elgg.config');
+
+/**
+ * Returns the current site URL
+ *
+ * @return {String} The site URL.
+ */
+elgg.get_site_url = function() {
+ return elgg.config.wwwroot;
+}; \ No newline at end of file