From 2a7aeef0cbf15d10c83d3f1250e986d796c7da3d Mon Sep 17 00:00:00 2001 From: ewinslow Date: Tue, 22 Feb 2011 08:07:22 +0000 Subject: 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 --- js/lib/configuration.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'js/lib/configuration.js') 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 -- cgit v1.2.3