Skip to content

Commit

Permalink
[4.1] remove db prefix from action logs (#37198)
Browse files Browse the repository at this point in the history
When performing a checkin of an article from the article manager then the log says `performed a check in to table #__content`
When performing a checkin using the global checkin then the log says` performed a check in to table jos_content`

This pr standardises and remove the jos_ from the action logs

(obviously the jos_ is yur own db prefix)
  • Loading branch information
brianteeman committed Mar 5, 2022
1 parent 4006e41 commit ab70aea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/actionlog/joomla/joomla.php
Original file line number Diff line number Diff line change
Expand Up @@ -992,7 +992,7 @@ public function onAfterCheckin($table)
'userid' => $user->id,
'username' => $user->username,
'accountlink' => 'index.php?option=com_users&task=user.edit&id=' . $user->id,
'table' => $table,
'table' => str_replace($this->db->getPrefix(), '#__', $table),
);

$this->addLog(array($message), 'PLG_ACTIONLOG_JOOMLA_USER_CHECKIN', $context, $user->id);
Expand Down

0 comments on commit ab70aea

Please sign in to comment.