From 1f1bdf23980bc16780208b461b44725d1911467e Mon Sep 17 00:00:00 2001 From: David Durieux Date: Tue, 5 Jul 2022 09:18:00 +0200 Subject: [PATCH] FI lint --- inc/update.class.php | 2 +- install/update_957_958.php | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/inc/update.class.php b/inc/update.class.php index d249fb87ff..bc80beed22 100644 --- a/inc/update.class.php +++ b/inc/update.class.php @@ -504,7 +504,7 @@ public function doUpdates($current_version = null) { include_once "{$updir}update_957_958.php"; update957to958(); break; - + case GLPI_VERSION: case GLPI_SCHEMA_VERSION: break; diff --git a/install/update_957_958.php b/install/update_957_958.php index 191ae9f277..ce16e50e30 100644 --- a/install/update_957_958.php +++ b/install/update_957_958.php @@ -35,13 +35,11 @@ * * @return bool for success (will die for most error) **/ -function update956to957() { +function update957to958() { /** @global Migration $migration */ - global $DB, $migration, $CFG_GLPI; + global $migration; - $current_config = Config::getConfigurationValues('core'); $updateresult = true; - $ADDTODISPLAYPREF = []; //TRANS: %s is the number of new version $migration->displayTitle(sprintf(__('Update to %s'), '9.5.8'));