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 #1264

Signed-off-by: Thierry Bugier <tbugier@teclib.com>
btry committed Mar 4, 2019

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 978a116 commit 2f5c27f
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
@@ -307,5 +307,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
@@ -58,7 +58,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',

0 comments on commit 2f5c27f

Please sign in to comment.