forked from Wavyzz/dolibarr
Use isModEnabled
This commit is contained in:
@@ -1441,7 +1441,7 @@ class Setup extends DolibarrApi
|
||||
{
|
||||
global $conf;
|
||||
|
||||
if (empty($conf->socialnetworks->enabled)) {
|
||||
if (!isModEnabled('socialnetworks')) {
|
||||
throw new RestException(400, 'API not available: this dictionary is not enabled by setup');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user