[ticket/12847] Allow the extensions to say if they can be enabled

PHPBB3-12847