Skip to content

Commit 56410c0

Browse files
committed
Remove similar unnecessary code
1 parent e624e4e commit 56410c0

2 files changed

Lines changed: 1 addition & 3 deletions

File tree

plugins/system/fields/fields.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,8 +204,7 @@ public function onContentAfterDelete($context, $item)
204204
}
205205

206206
$context = $parts[0] . '.' . $parts[1];
207-
208-
JLoader::import('joomla.application.component.model');
207+
209208
JModelLegacy::addIncludePath(JPATH_ADMINISTRATOR . '/components/com_fields/models', 'FieldsModel');
210209

211210
$model = JModelLegacy::getInstance('Field', 'FieldsModel', array('ignore_request' => true));

plugins/system/updatenotification/updatenotification.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ class PlgSystemUpdatenotification extends JPlugin
4343
public function onAfterRender()
4444
{
4545
// Get the timeout for Joomla! updates, as configured in com_installer's component parameters
46-
JLoader::import('joomla.application.component.helper');
4746
$component = JComponentHelper::getComponent('com_installer');
4847

4948
/** @var \Joomla\Registry\Registry $params */

0 commit comments

Comments
 (0)