Skip to content

Commit

Permalink
Replaced getPlugin() by loadPlugin()
Browse files Browse the repository at this point in the history
  • Loading branch information
jonasraoni committed Apr 2, 2024
1 parent ee0e8a1 commit 0f63652
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions MostViewedHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ public function getName(): string
public function executeActions(): bool
{
/** @var MostViewedPlugin $plugin */
$plugin = PluginRegistry::getPlugin('generic', 'mostviewedplugin');
if (!$plugin->getEnabled()) {
$plugin = PluginRegistry::loadPlugin('generic', 'mostviewedplugin');
if (!$plugin?->getEnabled()) {
return false;
}
$contextDao = Application::getContextDAO();
Expand Down

0 comments on commit 0f63652

Please sign in to comment.