X-Git-Url: https://git.openstreetmap.org./osqa.git/blobdiff_plain/389dfe31994fdc9e835af751b59e784d49f9e175..6ebde88b50458c1ba0d81d42ab3bc59e131537b1:/forum_modules/mysqlfulltext/__init__.py diff --git a/forum_modules/mysqlfulltext/__init__.py b/forum_modules/mysqlfulltext/__init__.py index 679d703..5591015 100644 --- a/forum_modules/mysqlfulltext/__init__.py +++ b/forum_modules/mysqlfulltext/__init__.py @@ -1,12 +1,14 @@ +from forum.base import get_database_engine +database_type = get_database_engine() + NAME = 'Mysql Full Text Search' DESCRIPTION = "Enables Mysql full text search functionality." try: import MySQLdb import settings_local - CAN_USE = settings_local.DATABASE_ENGINE in ('mysql', 'pooled_mysql') + CAN_USE = 'mysql' in database_type except Exception, e: import traceback traceback.print_exc() CAN_USE = False - \ No newline at end of file