1 elgg.provide(
'elgg.config');
8 elgg.get_site_url =
function() {
9 return elgg.config.wwwroot;
19 elgg.get_simplecache_url =
function(
view, subview) {
24 if (
elgg.config.simplecache_enabled) {
25 lastcache =
elgg.config.lastcache;
31 path =
'/cache/' + lastcache +
'/' +
elgg.config.viewtype +
'/' +
view;
33 elgg.assertTypeOf(
'string', subview);
35 if ((
view ===
'js' ||
view ===
'css') && 0 === subview.indexOf(
view +
'/')) {
36 subview = subview.substr(
view.length + 1);
38 path =
'/cache/' + lastcache +
'/' +
elgg.config.viewtype +
'/' +
view +
'/' + subview;
41 return elgg.normalize_url(path);
$CONFIG view
The current view type.
$CONFIG lastcache
The last cache time for the current viewtype.
$CONFIG path
Legacy documentation for the old $CONFIG object.