Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[4.2] Remove not used db reference in users view #37607

Merged
merged 3 commits into from Apr 23, 2022
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 0 additions & 10 deletions administrator/components/com_users/src/View/Users/HtmlView.php
Expand Up @@ -19,7 +19,6 @@
use Joomla\CMS\Object\CMSObject;
use Joomla\CMS\Toolbar\Toolbar;
use Joomla\CMS\Toolbar\ToolbarHelper;
use Joomla\Database\DatabaseDriver;

/**
* View class for a list of users.
Expand Down Expand Up @@ -77,14 +76,6 @@ class HtmlView extends BaseHtmlView
*/
protected $canDo;

/**
* An instance of DatabaseDriver.
*
* @var DatabaseDriver
* @since 3.6.3
*/
protected $db;

/**
* Display the view
*
Expand All @@ -100,7 +91,6 @@ public function display($tpl = null)
$this->filterForm = $this->get('FilterForm');
$this->activeFilters = $this->get('ActiveFilters');
$this->canDo = ContentHelper::getActions('com_users');
$this->db = Factory::getDbo();

// Check for errors.
if (count($errors = $this->get('Errors')))
Expand Down