diff --git a/administrator/components/com_users/views/groups/tmpl/default.php b/administrator/components/com_users/views/groups/tmpl/default.php index 1ef9ebc6ac43d..aa27c2a6b9da5 100644 --- a/administrator/components/com_users/views/groups/tmpl/default.php +++ b/administrator/components/com_users/views/groups/tmpl/default.php @@ -20,22 +20,7 @@ $listOrder = $this->escape($this->state->get('list.ordering')); $listDirn = $this->escape($this->state->get('list.direction')); - -// Create shortcut to parameters. -$params = $this->state->get('params'); - -$app = JFactory::getApplication(); -$input = $app->input; - -// This checks if the config options have ever been saved. If they haven't they will fall back to the original settings. -$params = json_decode($params); -$debugoptions = isset($params->debugGroups); - -if (!$debugoptions) -{ - $$params->debugGroups = '1'; -} - +$debugGroups = $this->state->get('params')->get('debugGroups', 1); JText::script('COM_USERS_GROUPS_CONFIRM_DELETE'); @@ -129,7 +114,7 @@ escape($item->title); ?> - debugGroups == 1) : ?> +
diff --git a/administrator/components/com_users/views/users/tmpl/default.php b/administrator/components/com_users/views/users/tmpl/default.php index c52f8bab4e93c..3f47c2f48602d 100644 --- a/administrator/components/com_users/views/users/tmpl/default.php +++ b/administrator/components/com_users/views/users/tmpl/default.php @@ -19,20 +19,7 @@ // Create shortcut to parameters. -$params = $this->state->get('params'); - -$app = JFactory::getApplication(); -$input = $app->input; - -// This checks if the config options have ever been saved. If they haven't they will fall back to the original settings. -$params = json_decode($params); -$debugoptions = isset($params->debugUsers); - -if (!$debugoptions) -{ - $params->debugUsers = '1'; -} - +$debugUsers = $this->state->get('params')->get('debugUsers', 1); ?>
sidebar)) : ?> @@ -130,7 +117,7 @@ requireReset == '1') : ?> - debugUsers == '1'): ?> +