aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engine/lib/elgglib.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/engine/lib/elgglib.php b/engine/lib/elgglib.php
index 7a842cfd1..68d760202 100644
--- a/engine/lib/elgglib.php
+++ b/engine/lib/elgglib.php
@@ -96,8 +96,11 @@
if (isset($_SESSION) && is_array($_SESSION) ) {
$vars = array_merge($vars, $_SESSION);
}
+ $vars['config'] = array();
if (!empty($CONFIG))
- $vars = array_merge($vars, get_object_vars($CONFIG));
+ $vars['config'] = $CONFIG;
+
+ $vars['url'] = $CONFIG->url;
// Load page owner variables into $vars
if (is_callable('page_owner')) {