aboutsummaryrefslogtreecommitdiff
path: root/mod/categories/views/default
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-03 12:35:58 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-03 12:35:58 +0000
commitfe113218b2b82338f6294cd2f2ba6a11d4bdf6a1 (patch)
tree62c46a9e29666e8d79e18672c868c7759461e4f1 /mod/categories/views/default
parentbf39908f4d587785a197de80b528e73c43ce99d9 (diff)
downloadelgg-fe113218b2b82338f6294cd2f2ba6a11d4bdf6a1.tar.gz
elgg-fe113218b2b82338f6294cd2f2ba6a11d4bdf6a1.tar.bz2
removed uses of $vars[config] in views
git-svn-id: http://code.elgg.org/elgg/trunk@8004 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/categories/views/default')
-rw-r--r--mod/categories/views/default/categories.php2
-rw-r--r--mod/categories/views/default/categories/list.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/mod/categories/views/default/categories.php b/mod/categories/views/default/categories.php
index eb81a7311..f69283e9f 100644
--- a/mod/categories/views/default/categories.php
+++ b/mod/categories/views/default/categories.php
@@ -9,7 +9,7 @@
if (isset($vars['entity']) && $vars['entity'] instanceof ElggEntity) {
$selected_categories = $vars['entity']->universal_categories;
}
-$categories = $vars['config']->site->categories;
+$categories = elgg_get_site_entity()->categories;
if (empty($categories)) {
$categories = array();
}
diff --git a/mod/categories/views/default/categories/list.php b/mod/categories/views/default/categories/list.php
index 9b62eff51..7a6dadff4 100644
--- a/mod/categories/views/default/categories/list.php
+++ b/mod/categories/views/default/categories/list.php
@@ -1,6 +1,6 @@
<?php
-$categories = $vars['config']->site->categories;
+$categories = elgg_get_site_entity()->categories;
if ($categories) {
if (!is_array($categories)) {