Skip to content

Commit

Permalink
Modernize list controller
Browse files Browse the repository at this point in the history
  • Loading branch information
billtomczak committed Sep 11, 2019
1 parent 935410a commit 6439c4d
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/admin/controllers/files.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,10 @@

defined('_JEXEC') or die;

jimport('legacy.controller.admin');

require_once JPATH_ADMINISTRATOR . '/components/com_osdownloads/models/items.php';

class OSDownloadsControllerFiles extends JControllerAdmin
{
public function getModel($name = '', $prefix = '', $config = array())
public function getModel($name = 'Items', $prefix = 'OsdownloadsModel', $config = array())
{
return OSDownloadsModelItems::getInstance('Items', 'OSDownloadsModel');
return parent::getModel($name, $prefix, $config);
}
}

0 comments on commit 6439c4d

Please sign in to comment.