diff --git a/ChangeLog b/ChangeLog
index 218d68c4ed8..71eaf9fa326 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -30,6 +30,7 @@ The following changes may create regressions for some external modules, but were
* The directory theme/common/octicons has been removed
* The library timepicker.js has been removed. Was not used by Dolibarr.
* Because of new TRIGGER_PREFIX property triggers SUPPLIER_PRODUCT_BUYPRICE_XXX are renamed to PRODUCT_BUYPRICE_XXX.
+* Function img_pdf() has been removed. Replace it with img_picto('', 'pdf.png') if you were using it.
***** ChangeLog for 22.0.2 compared to 22.0.1 *****
diff --git a/htdocs/comm/action/rapport/index.php b/htdocs/comm/action/rapport/index.php
index 7ad6a501c4f..6ade34e3900 100644
--- a/htdocs/comm/action/rapport/index.php
+++ b/htdocs/comm/action/rapport/index.php
@@ -171,7 +171,9 @@ if ($resql) {
// Button to build doc
print '
';
diff --git a/htdocs/compta/paiement_vat.php b/htdocs/compta/paiement_vat.php
index 9c4575c6373..9efec46fa16 100644
--- a/htdocs/compta/paiement_vat.php
+++ b/htdocs/compta/paiement_vat.php
@@ -323,7 +323,7 @@ if ($action == 'create') {
print '';
// Bouton Save payment
- print '
';
+ print '
';
print ' ';
print ' ';
print '';
diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php
index c5fdf5c4e89..1e275b08f14 100644
--- a/htdocs/core/class/html.form.class.php
+++ b/htdocs/core/class/html.form.class.php
@@ -216,7 +216,9 @@ class Form
$ret .= '
';
}
if ($htmlname && GETPOST('action', 'aZ09') != 'edit' . $htmlname && $perm) {
- $ret .= 'id . $moreparam . '">' . img_edit($langs->trans('Edit'), ($notabletag ? 0 : 1)) . '';
+ $ret .= 'id . $moreparam . '">';
+ $ret .= img_edit($langs->trans('Edit'), ($notabletag ? 0 : 1));
+ $ret .= '';
}
if (!empty($notabletag) && $notabletag == 1) {
if ($text) {
diff --git a/htdocs/core/lib/functions.lib.php b/htdocs/core/lib/functions.lib.php
index 44d41b5e8e4..89276ac76ee 100644
--- a/htdocs/core/lib/functions.lib.php
+++ b/htdocs/core/lib/functions.lib.php
@@ -6144,25 +6144,7 @@ function img_action($titlealt, $numaction, $picto = '', $moreatt = '')
}
/**
- * Show pdf logo
- *
- * @param string $titlealt Text on alt and title of image. Alt only if param notitle is set to 1. If text is "TextA:TextB", use Text A on alt and Text B on title.
- * @param int $size Taille de l'icone : 3 = 16x16px , 2 = 14x14px
- * @return string Retourne tag img
- */
-function img_pdf($titlealt = 'default', $size = 3)
-{
- global $langs;
-
- if ($titlealt == 'default') {
- $titlealt = $langs->trans('Show');
- }
-
- return img_picto($titlealt, 'pdf' . $size . '.png');
-}
-
-/**
- * Show logo +
+ * Show logo "+"
*
* @param string $titlealt Text on alt and title of image. Alt only if param notitle is set to 1. If text is "TextA:TextB", use Text A on alt and Text B on title.
* @param string $other Add more attributes on img
@@ -6179,7 +6161,7 @@ function img_edit_add($titlealt = 'default', $other = '')
return img_picto($titlealt, 'edit_add.png', $other);
}
/**
- * Show logo -
+ * Show logo "-"
*
* @param string $titlealt Text on alt and title of image. Alt only if param notitle is set to 1. If text is "TextA:TextB", use Text A on alt and Text B on title.
* @param string $other Add more attributes on img
@@ -6212,7 +6194,7 @@ function img_edit($titlealt = 'default', $float = 0, $other = '')
$titlealt = $langs->trans('Modify');
}
- return img_picto($titlealt, 'edit.png', ($float ? 'style="float: ' . ($langs->tab_translate["DIRECTION"] == 'rtl' ? 'left' : 'right') . '"' : "") . ($other ? ' ' . $other : ''));
+ return img_picto($titlealt, 'edit_add.png', ($float ? 'style="float: ' . ($langs->tab_translate["DIRECTION"] == 'rtl' ? 'left' : 'right') . '"' : "") . ($other ? ' ' . $other : ''));
}
/**
diff --git a/htdocs/fourn/facture/paiement.php b/htdocs/fourn/facture/paiement.php
index 1ada631fd35..3e7606ca4ed 100644
--- a/htdocs/fourn/facture/paiement.php
+++ b/htdocs/fourn/facture/paiement.php
@@ -917,7 +917,7 @@ if ($action == 'create' || $action == 'confirm_paiement' || $action == 'add_paie
// Save + Cancel Buttons
if ($action != 'add_paiement') {
print '