Skip to content

Commit e07e3a5

Browse files
committed
Fix for model not loading
1 parent e63a249 commit e07e3a5

File tree

1 file changed

+4
-2
lines changed
  • administrator/modules/mod_privacy_dashboard

1 file changed

+4
-2
lines changed

administrator/modules/mod_privacy_dashboard/helper.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99

1010
defined('_JEXEC') or die;
1111

12+
use Joomla\CMS\MVC\Model\BaseModel;
13+
1214
/**
1315
* Helper class for admin privacy dashboard module
1416
*
@@ -25,10 +27,10 @@ class ModPrivacyDashboardHelper
2527
*/
2628
public static function getData()
2729
{
28-
JModelLegacy::addIncludePath(JPATH_ADMINISTRATOR . '/components/com_privacy/models', 'PrivacyModel');
30+
BaseModel::addIncludePath(JPATH_ADMINISTRATOR . '/components/com_privacy/models', 'PrivacyModel');
2931

3032
/** @var PrivacyModelDashboard $model */
31-
$model = JModelLegacy::getInstance('Dashboard', 'PrivacyModel');
33+
$model = BaseModel::getInstance('Dashboard', 'PrivacyModel');
3234

3335
try
3436
{

0 commit comments

Comments
 (0)