Skip to content

Commit

Permalink
Use new class name cause by change in PR #45
Browse files Browse the repository at this point in the history
  • Loading branch information
joomdonation committed May 21, 2018
1 parent e0b18f5 commit a4972ee
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions administrator/modules/mod_latestactions/helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ abstract class ModLatestActionsHelper
*/
public static function getList(&$params)
{
JLoader::register('UserlogsModelUserlogs', JPATH_ADMINISTRATOR . '/components/com_userlogs/models/userlogs.php');
JLoader::register('UserlogsHelper', JPATH_ADMINISTRATOR . '/components/com_userlogs/helpers/userlogs.php');
JLoader::register('ActionlogsModelActionlogs', JPATH_ADMINISTRATOR . '/components/com_actionlogs/models/actionlogs.php');
JLoader::register('ActionlogsHelper', JPATH_ADMINISTRATOR . '/components/com_actionlogs/helpers/actionlogs.php');

/* @var UserlogsModelUserlogs $model */
$model = JModelLegacy::getInstance('Userlogs', 'UserlogsModel', array('ignore_request' => true));
/* @var ActionlogsModelActionlogs $model */
$model = JModelLegacy::getInstance('Actionlogs', 'ActionlogsModel', array('ignore_request' => true));

// Set the Start and Limit
$model->setState('list.start', 0);
Expand All @@ -41,7 +41,7 @@ public static function getList(&$params)

foreach ($rows as $row)
{
$row->message = UserlogsHelper::getHumanReadableLogMessage($row);
$row->message = ActionlogsHelper::getHumanReadableLogMessage($row);
}

return $rows;
Expand Down

0 comments on commit a4972ee

Please sign in to comment.