Skip to content

Commit b7e5e7f

Browse files
committed
Merge branch 'release/2.6.0'
2 parents 79e985c + 6d83a8f commit b7e5e7f

32 files changed

+905
-691
lines changed

barcode.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@
2222
<author>David DURIEUX</author>
2323
</authors>
2424
<versions>
25+
<version>
26+
<num>2.6.0</num>
27+
<compatibility>~9.5.0</compatibility>
28+
<download_url>https://github.com/pluginsGLPI/barcode/releases/download/2.6.0/glpi-barcode-2.6.0.tar.bz2</download_url>
29+
</version>
2530
<version>
2631
<num>2.5.2</num>
2732
<compatibility>~9.5.0</compatibility>

composer.lock

Lines changed: 39 additions & 39 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

front/config.form.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,11 @@
5454
}
5555
}
5656
Session::addMessageAfterRedirect(__('The cache has been emptied.', 'barcode'));
57+
} else if (isset($_POST['dropLogo'])) {
58+
if (is_file(GLPI_PLUGIN_DOC_DIR.'/barcode/logo.png')) {
59+
unlink(GLPI_PLUGIN_DOC_DIR.'/barcode/logo.png');
60+
}
61+
Session::addMessageAfterRedirect(__('The logo has been removed.', 'barcode'));
5762
} else if (!empty($_FILES['logo']['name'])) {
5863
if (is_file(GLPI_PLUGIN_DOC_DIR.'/barcode/logo.png')) {
5964
@unlink(GLPI_PLUGIN_DOC_DIR.'/barcode/logo.png');

inc/config.class.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,10 @@ function showForm($p_type = null) {
9595
width='300'/>";
9696
echo "</td>";
9797
echo "</tr>";
98+
99+
echo "<tr class='tab_bg_1'>";
100+
echo "<td class='tab_bg_1' colspan='4' align='center'><input type='submit' value='".__('Delete the logo', 'barcode')."' class='submit' name='dropLogo'></td>";
101+
echo "</tr>";
98102
}
99103

100104
echo "<tr class='tab_bg_1'>";

0 commit comments

Comments
 (0)