From 95b741c0aa69165bd426fd2b82981bec78e884ba Mon Sep 17 00:00:00 2001 From: Curtis Conard Date: Sat, 27 Jan 2024 15:03:22 -0500 Subject: [PATCH] drop old debug configs --- inc/clientinjection.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/inc/clientinjection.class.php b/inc/clientinjection.class.php index 3ce52b44..1ef632df 100644 --- a/inc/clientinjection.class.php +++ b/inc/clientinjection.class.php @@ -232,7 +232,7 @@ static function processInjection(PluginDatainjectionModel $model, $entities_id) ini_set("max_execution_time", "0"); // Disable recording each SQL request in $_SESSION - $CFG_GLPI["debug_sql"] = 0; + \Glpi\Debug\Profile::getCurrent()->disable(); $nblines = PluginDatainjectionSession::getParam('nblines'); $clientinjection = new PluginDatainjectionClientInjection; @@ -300,7 +300,7 @@ static function processInjection(PluginDatainjectionModel $model, $entities_id) ); // Restore - $CFG_GLPI["debug_sql"] = 1; + \Glpi\Debug\Profile::getCurrent()->enable(); //Close CSV file $backend->closeFile();