File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -16,4 +16,4 @@ This extension adds passive security features to phpBB that allow the board's fo
1616Note: 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)
Original file line number Diff line number Diff line change 1616class 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 /**
You can’t perform that action at this time.
0 commit comments