From ab70aeac3c3203042704da8529a692013e054fef Mon Sep 17 00:00:00 2001 From: Brian Teeman Date: Sat, 5 Mar 2022 22:07:49 +0000 Subject: [PATCH] [4.1] remove db prefix from action logs (#37198) 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) --- plugins/actionlog/joomla/joomla.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/actionlog/joomla/joomla.php b/plugins/actionlog/joomla/joomla.php index bab346473c68b..0448d50d3f9c9 100644 --- a/plugins/actionlog/joomla/joomla.php +++ b/plugins/actionlog/joomla/joomla.php @@ -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);