diff options
author | ewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-02-22 08:07:22 +0000 |
---|---|---|
committer | ewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-02-22 08:07:22 +0000 |
commit | 2a7aeef0cbf15d10c83d3f1250e986d796c7da3d (patch) | |
tree | 5753133ef520803b4d5abfdbc297b9b530e6652d /js | |
parent | 83bce58acfda6821af22ffc26edaf240f0f5bfe3 (diff) | |
download | elgg-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.js | 6 |
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 |