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();