aboutsummaryrefslogtreecommitdiff
path: root/views/default/core/settings/account
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-03 02:55:41 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-03 02:55:41 +0000
commit4503c58bc954671503650223bbcabe7a2951d415 (patch)
treedbf87ecf25dda9e5e8279a4296d8dea2d8222f12 /views/default/core/settings/account
parent72b8810ea3403491362a47cc5075402d785f1038 (diff)
downloadelgg-4503c58bc954671503650223bbcabe7a2951d415.tar.gz
elgg-4503c58bc954671503650223bbcabe7a2951d415.tar.bz2
Refs #2428 removed some uses of CONFIG in the views
git-svn-id: http://code.elgg.org/elgg/trunk@7996 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default/core/settings/account')
-rw-r--r--views/default/core/settings/account/default_access.php6
-rw-r--r--views/default/core/settings/account/language.php1
2 files changed, 3 insertions, 4 deletions
diff --git a/views/default/core/settings/account/default_access.php b/views/default/core/settings/account/default_access.php
index 678a68ba1..4c4e44757 100644
--- a/views/default/core/settings/account/default_access.php
+++ b/views/default/core/settings/account/default_access.php
@@ -5,12 +5,12 @@
* @package Elgg
* @subpackage Core
*/
-if ($vars['config']->allow_user_default_access) {
+if (elgg_get_config('allow_user_default_access')) {
$user = elgg_get_page_owner_entity();
if ($user) {
if (false === ($default_access = $user->getPrivateSetting('elgg_default_access'))) {
- $default_access = $vars['config']->default_access;
+ $default_access = elgg_get_config('default_access');
}
?>
<div class="elgg-module elgg-info-module">
@@ -22,7 +22,7 @@ if ($vars['config']->allow_user_default_access) {
<?php echo elgg_echo('default_access:label'); ?>:
<?php
- echo elgg_view('input/access',array('internalname' => 'default_access', 'value' => $default_access));
+ echo elgg_view('input/access', array('internalname' => 'default_access', 'value' => $default_access));
?>
</p>
diff --git a/views/default/core/settings/account/language.php b/views/default/core/settings/account/language.php
index bac22fe34..3391a3733 100644
--- a/views/default/core/settings/account/language.php
+++ b/views/default/core/settings/account/language.php
@@ -6,7 +6,6 @@
* @subpackage Core
*/
-global $CONFIG;
$user = elgg_get_page_owner_entity();
if ($user) {