Skip to content

Commit

Permalink
fix: rename the plugin
Browse files Browse the repository at this point in the history
the plugin has a misleading name in the list of plugins. It is form creator, then it must show with these words

closes pluginsGLPI#1264

Signed-off-by: Thierry Bugier <tbugier@teclib.com>
  • Loading branch information
btry committed Feb 19, 2019
1 parent 286df68 commit fe50287
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions install/upgrade_to_2.7.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
]);
}
}
2 changes: 1 addition & 1 deletion setup.php
Original file line number Diff line number Diff line change
Expand Up @@ -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' => '<a href="http://www.teclib.com">Teclib\'</a>',
'homepage' => 'https://github.com/pluginsGLPI/formcreator',
Expand Down

0 comments on commit fe50287

Please sign in to comment.