diff options
author | Cash Costello <cash.costello@gmail.com> | 2011-12-24 07:41:06 -0500 |
---|---|---|
committer | Cash Costello <cash.costello@gmail.com> | 2011-12-24 07:41:06 -0500 |
commit | 1c2735807961ce916c27832327a07ef0bc9d5a40 (patch) | |
tree | 044b048bac9e3abd5c2ca95854c035aaeb3d0efe | |
parent | b18e603a928801d5a3d9f2847e03a96307937e19 (diff) | |
download | elgg-1c2735807961ce916c27832327a07ef0bc9d5a40.tar.gz elgg-1c2735807961ce916c27832327a07ef0bc9d5a40.tar.bz2 |
Refs #4009 registering the walled garden css and js on every request
-rw-r--r-- | engine/lib/elgglib.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/engine/lib/elgglib.php b/engine/lib/elgglib.php index 57d602450..c32f7fa0c 100644 --- a/engine/lib/elgglib.php +++ b/engine/lib/elgglib.php @@ -1996,9 +1996,7 @@ function elgg_is_valid_options_for_batch_operation($options, $type) { * @access private */ function elgg_walled_garden_index() { - elgg_register_css('elgg.walled_garden', '/css/walled_garden.css'); elgg_load_css('elgg.walled_garden'); - elgg_register_js('elgg.walled_garden', '/js/walled_garden.js'); elgg_load_js('elgg.walled_garden'); $body = elgg_view('core/walled_garden/body'); @@ -2026,6 +2024,9 @@ function elgg_walled_garden_index() { function elgg_walled_garden() { global $CONFIG; + elgg_register_css('elgg.walled_garden', '/css/walled_garden.css'); + elgg_register_js('elgg.walled_garden', '/js/walled_garden.js'); + // check for external page view if (isset($CONFIG->site) && $CONFIG->site instanceof ElggSite) { $CONFIG->site->checkWalledGarden(); |