fix: ActionlogsHelper::getIp() does not exist in Joomla 5
Generic: Repo Health / Release configuration (push) Has been cancelled
Generic: Repo Health / Scripts governance (push) Has been cancelled
Generic: Repo Health / Repository health (push) Has been cancelled
Generic: Repo Health / Report Issues (push) Has been cancelled
Generic: Repo Health / Site Health (push) Has been cancelled
Generic: Repo Health / Access control (push) Has been cancelled
Universal: Auto Version Bump / Version Bump (push) Has been cancelled
Generic: Repo Health / Release configuration (push) Has been cancelled
Generic: Repo Health / Scripts governance (push) Has been cancelled
Generic: Repo Health / Repository health (push) Has been cancelled
Generic: Repo Health / Report Issues (push) Has been cancelled
Generic: Repo Health / Site Health (push) Has been cancelled
Generic: Repo Health / Access control (push) Has been cancelled
Universal: Auto Version Bump / Version Bump (push) Has been cancelled
Replace with direct REMOTE_ADDR fetch from input server. Authored-by: Moko Consulting Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
+1
-2
@@ -15,7 +15,6 @@ defined('_JEXEC') or die;
|
||||
use Joomla\CMS\Event\Model;
|
||||
use Joomla\CMS\Factory;
|
||||
use Joomla\CMS\Plugin\CMSPlugin;
|
||||
use Joomla\Component\Actionlogs\Administrator\Helper\ActionlogsHelper;
|
||||
use Joomla\Event\Event;
|
||||
use Joomla\Event\SubscriberInterface;
|
||||
|
||||
@@ -142,7 +141,7 @@ final class MokoJoomBackupActionlog extends CMSPlugin implements SubscriberInter
|
||||
'date' => date('Y-m-d H:i:s'),
|
||||
'extension' => 'com_mokojoombackup',
|
||||
'user_id' => $userId,
|
||||
'ip_address' => ActionlogsHelper::getIp(),
|
||||
'ip_address' => Factory::getApplication()->input->server->getString('REMOTE_ADDR', ''),
|
||||
'item_id' => $message['id'] ?? 0,
|
||||
];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user