aboutsummaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-22 08:07:22 +0000
committerewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-22 08:07:22 +0000
commit2a7aeef0cbf15d10c83d3f1250e986d796c7da3d (patch)
tree5753133ef520803b4d5abfdbc297b9b530e6652d /js
parent83bce58acfda6821af22ffc26edaf240f0f5bfe3 (diff)
downloadelgg-2a7aeef0cbf15d10c83d3f1250e986d796c7da3d.tar.gz
elgg-2a7aeef0cbf15d10c83d3f1250e986d796c7da3d.tar.bz2
Added elgg.get_site_url(), so people don't have to deal with the config object.
git-svn-id: http://code.elgg.org/elgg/trunk@8423 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'js')
-rw-r--r--js/lib/configuration.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/js/lib/configuration.js b/js/lib/configuration.js
index 8ed326116..d0c852bd0 100644
--- a/js/lib/configuration.js
+++ b/js/lib/configuration.js
@@ -1,3 +1,7 @@
elgg.provide('elgg.config');
-elgg.config.wwwroot = '/'; \ No newline at end of file
+elgg.config.wwwroot = '/';
+
+elgg.get_site_url = function() {
+ return elgg.config.wwwroot;
+} \ No newline at end of file