Skip to content

Commit

Permalink
Remove similar unnecessary code
Browse files Browse the repository at this point in the history
  • Loading branch information
joomdonation committed Apr 13, 2018
1 parent e624e4e commit 56410c0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 1 addition & 2 deletions plugins/system/fields/fields.php
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down
1 change: 0 additions & 1 deletion plugins/system/updatenotification/updatenotification.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 56410c0

Please sign in to comment.