aboutsummaryrefslogtreecommitdiff
path: root/views/default/core/settings/account
diff options
context:
space:
mode:
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) {