]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Added elgg.get_site_url(), so people don't have to deal with the config object.
authorewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544>
Tue, 22 Feb 2011 08:07:22 +0000 (08:07 +0000)
committerewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544>
Tue, 22 Feb 2011 08:07:22 +0000 (08:07 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@8423 36083f99-b078-4883-b0ff-0f9b5a30f544

js/lib/configuration.js

index 8ed3261162f10710626b54b83477ae85ed9ad039..d0c852bd08c8bf6da1bfa1a42028d70463b5f888 100644 (file)
@@ -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