aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/elgglib.php
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2011-12-24 07:41:06 -0500
committerCash Costello <cash.costello@gmail.com>2011-12-24 07:41:06 -0500
commit1c2735807961ce916c27832327a07ef0bc9d5a40 (patch)
tree044b048bac9e3abd5c2ca95854c035aaeb3d0efe /engine/lib/elgglib.php
parentb18e603a928801d5a3d9f2847e03a96307937e19 (diff)
downloadelgg-1c2735807961ce916c27832327a07ef0bc9d5a40.tar.gz
elgg-1c2735807961ce916c27832327a07ef0bc9d5a40.tar.bz2
Refs #4009 registering the walled garden css and js on every request
Diffstat (limited to 'engine/lib/elgglib.php')
-rw-r--r--engine/lib/elgglib.php5
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();