Skip to content

Commit

Permalink
Migrate JPluginHelper to PluginHelper
Browse files Browse the repository at this point in the history
  • Loading branch information
sonvnn committed Oct 28, 2023
1 parent db8de70 commit 65b9133
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugins/astroid/astroid.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
define('COMPILE_SASS', 0);

use Joomla\CMS\Plugin\CMSPlugin;
use Joomla\CMS\Plugin\PluginHelper;

if (file_exists(JPATH_LIBRARIES . '/astroid/framework/library/astroid')) {
JLoader::registerNamespace('Astroid', JPATH_LIBRARIES . '/astroid/framework/library/astroid', false, false, 'psr4');
Expand Down Expand Up @@ -76,7 +77,7 @@ public function onAfterRespond()
return;
}

$cache = \JPluginHelper::getPlugin('system', 'cache');
$cache = PluginHelper::getPlugin('system', 'cache');
if (Framework::isSite() && !empty($cache)) {
return;
}
Expand Down

0 comments on commit 65b9133

Please sign in to comment.