Skip to content

Commit

Permalink
Merge branch 'release/2.6.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
cedric-anne committed Jul 22, 2021
2 parents 79e985c + 6d83a8f commit b7e5e7f
Show file tree
Hide file tree
Showing 32 changed files with 905 additions and 691 deletions.
5 changes: 5 additions & 0 deletions barcode.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@
<author>David DURIEUX</author>
</authors>
<versions>
<version>
<num>2.6.0</num>
<compatibility>~9.5.0</compatibility>
<download_url>https://github.com/pluginsGLPI/barcode/releases/download/2.6.0/glpi-barcode-2.6.0.tar.bz2</download_url>
</version>
<version>
<num>2.5.2</num>
<compatibility>~9.5.0</compatibility>
Expand Down
78 changes: 39 additions & 39 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions front/config.form.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,11 @@
}
}
Session::addMessageAfterRedirect(__('The cache has been emptied.', 'barcode'));
} else if (isset($_POST['dropLogo'])) {
if (is_file(GLPI_PLUGIN_DOC_DIR.'/barcode/logo.png')) {
unlink(GLPI_PLUGIN_DOC_DIR.'/barcode/logo.png');
}
Session::addMessageAfterRedirect(__('The logo has been removed.', 'barcode'));
} else if (!empty($_FILES['logo']['name'])) {
if (is_file(GLPI_PLUGIN_DOC_DIR.'/barcode/logo.png')) {
@unlink(GLPI_PLUGIN_DOC_DIR.'/barcode/logo.png');
Expand Down
4 changes: 4 additions & 0 deletions inc/config.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,10 @@ function showForm($p_type = null) {
width='300'/>";
echo "</td>";
echo "</tr>";

echo "<tr class='tab_bg_1'>";
echo "<td class='tab_bg_1' colspan='4' align='center'><input type='submit' value='".__('Delete the logo', 'barcode')."' class='submit' name='dropLogo'></td>";
echo "</tr>";
}

echo "<tr class='tab_bg_1'>";
Expand Down
Loading

0 comments on commit b7e5e7f

Please sign in to comment.