1 elgg.provide(
'elgg.config');
8 elgg.get_site_url =
function() {
9 return elgg.config.wwwroot;
19 elgg.get_simplecache_url =
function(
view, subview) {
22 if (
elgg.config.simplecache_enabled) {
23 lastcache =
elgg.config.lastcache;
29 path =
'/cache/' + lastcache +
'/' +
elgg.config.viewtype +
'/' +
view;
31 if ((
view ===
'js' ||
view ===
'css') && 0 === subview.indexOf(
view +
'/')) {
32 subview = subview.substr(
view.length + 1);
34 path =
'/cache/' + lastcache +
'/' +
elgg.config.viewtype +
'/' +
view +
'/' + subview;
37 return elgg.normalize_url(path);
$CONFIG view
The current view type.
$CONFIG lastcache
The last cache time for the current viewtype.
$CONFIG path
The full path where Elgg is installed.