Skip to content

Commit b645c85

Browse files
committed
Minor fixes
Signed-off-by: Matt Friedman <maf675@gmail.com>
1 parent 6a2c65a commit b645c85

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ This extension adds passive security features to phpBB that allow the board's fo
1616
Note: This extension is currently under development and is not ready to install on any live forum.
1717

1818
## License
19-
[GNU General Public License v2](http://opensource.org/licenses/GPL-2.0)
19+
[GNU General Public License v2](https://opensource.org/licenses/GPL-2.0)

ext.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
class ext extends \phpbb\extension\base
1717
{
1818
/**
19-
* Check whether or not the extension can be enabled.
19+
* Check whether the extension can be enabled.
2020
* The current phpBB version should meet or exceed
2121
* the minimum version required by this extension:
2222
*
@@ -27,8 +27,7 @@ class ext extends \phpbb\extension\base
2727
*/
2828
public function is_enableable()
2929
{
30-
$config = $this->container->get('config');
31-
return phpbb_version_compare($config['version'], '3.2.0', '>=');
30+
return phpbb_version_compare(PHPBB_VERSION, '3.2.0', '>=');
3231
}
3332

3433
/**

0 commit comments

Comments
 (0)