diff --git a/install/upgrade_to_2.7.php b/install/upgrade_to_2.7.php index 7bcc2d448a..d0717f4484 100644 --- a/install/upgrade_to_2.7.php +++ b/install/upgrade_to_2.7.php @@ -306,5 +306,13 @@ public function upgrade(Migration $migration) { $id = $row['id']; $DB->query("UPDATE `glpi_plugin_formcreator_forms` SET `name` = '$name', `description` = '$description', `content` = '$content' WHERE `id` = '$id'"); } + + // Rename the plugin + $plugin = new Plugin(); + $plugin->getFromDBbyDir('formcreator'); + $success = $plugin->update([ + 'id' => $plugin->getID(), + 'name' => 'Form Creator', + ]); } } diff --git a/setup.php b/setup.php index c7bbdab7e3..83fe8e0813 100644 --- a/setup.php +++ b/setup.php @@ -56,7 +56,7 @@ function plugin_version_formcreator() { return false; } $requirements = [ - 'name' => _n('Form', 'Forms', 2, 'formcreator'), + 'name' => 'Form Creator', 'version' => PLUGIN_FORMCREATOR_VERSION, 'author' => 'Teclib\'', 'homepage' => 'https://github.com/pluginsGLPI/formcreator',