From df7ee5e392d5e0ab2d3ecc0911de60e8e7fac740 Mon Sep 17 00:00:00 2001 From: ldestailleur Date: Mon, 28 Jul 2025 15:17:14 +0200 Subject: [PATCH] Has been replaced with API_ENABLE_COUNT_CALLS --- htdocs/api/index.php | 8 -------- 1 file changed, 8 deletions(-) diff --git a/htdocs/api/index.php b/htdocs/api/index.php index 3efaefc553b..9b78fe060ef 100644 --- a/htdocs/api/index.php +++ b/htdocs/api/index.php @@ -312,14 +312,6 @@ if (!empty($reg[1]) && ($reg[1] != 'explorer' || ($reg[2] != '/swagger.json' && $moduleobject = $reg[1]; if ($moduleobject == 'explorer') { // If we call page to explore details of a service $moduleobject = $regbis[2]; - } else { - // TODO - // Increase counter of API access - if (getDolGlobalString('API_COUNTER_ENABLED')) { - include DOL_DOCUMENT_ROOT.'/core/lib/admin.lib.php'; - dolibarr_set_const($db, 'API_COUNTER_COUNT', getDolGlobalInt('API_COUNTER_COUNT') + 1, 'chaine', 1); - //var_dump('eeee');exit; - } } $moduleobject = strtolower($moduleobject);