Add param other on img_delete as like on img_edit

Ajout du parametre $other tel que existant sur img_edit
This commit is contained in:
FHenry 2011-10-10 05:10:21 +08:00 committed by Regis Houssin
parent fde6a8aa29
commit c549a56021

View File

@ -1831,13 +1831,14 @@ function img_view($alt = "default", $float=0, $other='')
* Show delete logo * Show delete logo
* *
* @param alt Texte sur le alt de l'image * @param alt Texte sur le alt de l'image
* @param other Add more attributes on img
* @return string Retourne tag img * @return string Retourne tag img
*/ */
function img_delete($alt = "default") function img_delete($alt = "default", $other='')
{ {
global $conf,$langs; global $conf,$langs;
if ($alt=="default") $alt=$langs->trans("Delete"); if ($alt=="default") $alt=$langs->trans("Delete");
return img_picto($alt,'delete.png'); return img_picto($alt,'delete.png',$other);
} }