diff --git a/plugins/system/fields/fields.php b/plugins/system/fields/fields.php index a7b432011a835..7dfba620c891c 100644 --- a/plugins/system/fields/fields.php +++ b/plugins/system/fields/fields.php @@ -204,8 +204,7 @@ public function onContentAfterDelete($context, $item) } $context = $parts[0] . '.' . $parts[1]; - - JLoader::import('joomla.application.component.model'); + JModelLegacy::addIncludePath(JPATH_ADMINISTRATOR . '/components/com_fields/models', 'FieldsModel'); $model = JModelLegacy::getInstance('Field', 'FieldsModel', array('ignore_request' => true)); diff --git a/plugins/system/updatenotification/updatenotification.php b/plugins/system/updatenotification/updatenotification.php index 8af6dcd22a5e7..09fbc31d834ed 100644 --- a/plugins/system/updatenotification/updatenotification.php +++ b/plugins/system/updatenotification/updatenotification.php @@ -43,7 +43,6 @@ class PlgSystemUpdatenotification extends JPlugin public function onAfterRender() { // Get the timeout for Joomla! updates, as configured in com_installer's component parameters - JLoader::import('joomla.application.component.helper'); $component = JComponentHelper::getComponent('com_installer'); /** @var \Joomla\Registry\Registry $params */