I'm currently trying to check if a specific module is enabled by using Joomla's JModuleHelper::isEnabled()
, however the problem being is that it is always returning false, despite whether it is actually enabled or not.
Having looked at the Docs, I've written the following:
jimport('joomla.application.module.helper');
$freichat = JModuleHelper::isEnabled('FreiChat-I');
if($freichat) {
$message = 'Enabled';
}
else {
$message = 'Disabled';
}
$application = JFactory::getApplication();
$application->enqueueMessage( $message, 'warning');
I've tried changing FreiChat-I
to login
, which then always returns true, despite being enabled or disabled.
Is there a known bug that I'm unaware of or am I simply doing something stupid here?
isAvailable
as the example in the link you provided says that "Login module is available". The returned value of this function has 3 criterias which "is enabled" is only one of them.