mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-02-07 16:41:48 +01:00
Update api_setup.class.php
This commit is contained in:
@@ -1095,7 +1095,9 @@ class Setup extends DolibarrApi
|
||||
*/
|
||||
public function getListOfsocialNetworks($sortfield = "rowid", $sortorder = 'ASC', $limit = 100, $page = 0, $active = 1, $sqlfilters = '')
|
||||
{
|
||||
if (empty($conf->global->MAIN_MODULE_SOCIALNETWORKS)) {
|
||||
global $conf;
|
||||
|
||||
if (empty($conf->socialnetworks->enabled)) {
|
||||
throw new RestException(400, 'API not available: this dictionary is not enabled by setup');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user