Skip to content

Commit

Permalink
Optimize version check
Browse files Browse the repository at this point in the history
  • Loading branch information
iMattPro committed Jun 12, 2021
1 parent db5408b commit 3cfea9c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions ext.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,7 @@ class ext extends \phpbb\extension\base
public function is_enableable()
{
$config = $this->container->get('config');

return phpbb_version_compare($config['version'], self::PHPBB_MIN_VERSION, '>=') &&
phpbb_version_compare(PHPBB_VERSION, self::PHPBB_MIN_VERSION, '>=');
return phpbb_version_compare(min($config['version'], PHPBB_VERSION), self::PHPBB_MIN_VERSION, '>=');
}

/**
Expand Down

0 comments on commit 3cfea9c

Please sign in to comment.