mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-02-07 16:41:48 +01:00
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