From b625b1843e4ae0c8085867591252a7809acee0aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Salvador?= Date: Tue, 30 Jul 2013 17:07:19 +0200 Subject: [PATCH] add a field for label input --- htdocs/core/class/html.formfile.class.php | 3 +++ htdocs/core/lib/files.lib.php | 1 + 2 files changed, 4 insertions(+) diff --git a/htdocs/core/class/html.formfile.class.php b/htdocs/core/class/html.formfile.class.php index 03fcd480d27..d866601cbcb 100644 --- a/htdocs/core/class/html.formfile.class.php +++ b/htdocs/core/class/html.formfile.class.php @@ -165,7 +165,10 @@ class FormFile $out .= ''; $out .= ''; $out .= '
'; + $out .= $langs->trans("Link") . ': '; $out .= ''; + $out .= '   ' . $langs->trans("Label") . ': '; + $out .= ''; $out .= ''; $out .= ''; $out .= 'url = $link; $linkObject->objecttype = GETPOST('objecttype', 'alpha'); $linkObject->objectid = GETPOST('objectid', 'int'); + $linkObject->label = GETPOST('label', 'alpha'); $res = $linkObject->create($user); if ($res > 0) { setEventMessage($langs->trans("LinkComplete"));