Skip to content

Commit

Permalink
Fix for model not loading
Browse files Browse the repository at this point in the history
  • Loading branch information
wilsonge committed Mar 28, 2019
1 parent e63a249 commit e07e3a5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions administrator/modules/mod_privacy_dashboard/helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@

defined('_JEXEC') or die;

use Joomla\CMS\MVC\Model\BaseModel;

/**
* Helper class for admin privacy dashboard module
*
Expand All @@ -25,10 +27,10 @@ class ModPrivacyDashboardHelper
*/
public static function getData()
{
JModelLegacy::addIncludePath(JPATH_ADMINISTRATOR . '/components/com_privacy/models', 'PrivacyModel');
BaseModel::addIncludePath(JPATH_ADMINISTRATOR . '/components/com_privacy/models', 'PrivacyModel');

/** @var PrivacyModelDashboard $model */
$model = JModelLegacy::getInstance('Dashboard', 'PrivacyModel');
$model = BaseModel::getInstance('Dashboard', 'PrivacyModel');

try
{
Expand Down

0 comments on commit e07e3a5

Please sign in to comment.