From 93ea4379b24eb25d23ea6ef074949fd370124acd Mon Sep 17 00:00:00 2001 From: Christian Foellmann Date: Thu, 21 Dec 2023 13:32:08 +0100 Subject: [PATCH] QUAL replace $conf->global with getDolGlobalString() --- htdocs/api/class/api_status.class.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/htdocs/api/class/api_status.class.php b/htdocs/api/class/api_status.class.php index 899bd1b40aa..4bbd4e93957 100644 --- a/htdocs/api/class/api_status.class.php +++ b/htdocs/api/class/api_status.class.php @@ -1,5 +1,7 @@ +/* + * Copyright (C) 2015 Jean-François Ferry + * Copyright (C) 2023 Christian Foellmann * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -43,13 +45,11 @@ class Status extends DolibarrApi */ public function index() { - global $conf; - return array( 'success' => array( 'code' => 200, 'dolibarr_version' => DOL_VERSION, - 'access_locked' => (!getDolGlobalString('MAIN_ONLY_LOGIN_ALLOWED') ? '0' : $conf->global->MAIN_ONLY_LOGIN_ALLOWED), + 'access_locked' => (!getDolGlobalString('MAIN_ONLY_LOGIN_ALLOWED') ? '0' : getDolGlobalString('MAIN_ONLY_LOGIN_ALLOWED')), ), ); }