Skip to content

Commit 2c84edb

Browse files
committed
Remove sqlite restrictions
1 parent 4fedd66 commit 2c84edb

1 file changed

Lines changed: 3 additions & 8 deletions

File tree

ext.php

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -60,19 +60,14 @@ public static function status_name($id)
6060
* Requires phpBB >= 3.2.3 due to removal of deprecated Twig functions (ie Twig_SimpleFunction)
6161
* Requires phpBB >= 3.3.0 due to use of PHP 7 features
6262
* Requires PHP >= 7.1.0
63-
* Also incompatible with SQLite which does not support SQRT in SQL queries
6463
*
6564
* @return bool
6665
* @access public
6766
*/
6867
public function is_enableable()
6968
{
70-
if (PHP_VERSION_ID < 70100 || phpbb_version_compare(PHPBB_VERSION, '3.3.0', '<') || phpbb_version_compare(PHPBB_VERSION, '4.0.0-dev', '>='))
71-
{
72-
return false;
73-
}
74-
75-
$db = $this->container->get('dbal.conn');
76-
return ($db->get_sql_layer() !== 'sqlite3');
69+
return !(PHP_VERSION_ID < 70100 ||
70+
phpbb_version_compare(PHPBB_VERSION, '3.3.0', '<') ||
71+
phpbb_version_compare(PHPBB_VERSION, '4.0.0-dev', '>='));
7772
}
7873
}

0 commit comments

Comments
 (0)