diff --git a/tjreports/plugins/actionlog/tjreports/tjreports.php b/tjreports/plugins/actionlog/tjreports/tjreports.php index 36e1312..2b29b42 100644 --- a/tjreports/plugins/actionlog/tjreports/tjreports.php +++ b/tjreports/plugins/actionlog/tjreports/tjreports.php @@ -66,7 +66,12 @@ class PlgActionlogTjreports extends CMSPlugin */ protected function addLog($messages, $messageLanguageKey, $context, $userId = null) { - if (JVERSION >= '4.0') + if (JVERSION >= '4.4.0') + { + $model = Factory::getApplication()->bootComponent('com_actionlogs') + ->getMVCFactory()->createModel('Actionlog', 'Administrator', ['ignore_request' => true]); + } + else if (JVERSION >= '4.0') { $model = new ActionlogModel; }