diff options
Diffstat (limited to 'js/lib/configuration.js')
| -rw-r--r-- | js/lib/configuration.js | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/js/lib/configuration.js b/js/lib/configuration.js index 8ed326116..6e221c957 100644 --- a/js/lib/configuration.js +++ b/js/lib/configuration.js @@ -1,3 +1,10 @@ elgg.provide('elgg.config'); -elgg.config.wwwroot = '/';
\ No newline at end of file +/** + * 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 |
