diff --git a/lib/WebGUI/Asset/File.pm b/lib/WebGUI/Asset/File.pm index 884ebadeb..01cf7bd19 100644 --- a/lib/WebGUI/Asset/File.pm +++ b/lib/WebGUI/Asset/File.pm @@ -216,8 +216,8 @@ sub getEditForm { =head2 getEditFormUploadControl -Returns the HTML to render the upload box and link to delete the existing -file, if necessary. +Returns the HTML to display the current photo, if it has one, and a file chooser +to either upload one, or replace the current one. =cut @@ -229,8 +229,6 @@ sub getEditFormUploadControl { if ($self->get("filename") ne "") { $html .= WebGUI::Form::readOnly( $session, { - label => $i18n->get('current file'), - hoverHelp => $i18n->get('current file description', 'Asset_File'), value => '
' }); } diff --git a/lib/WebGUI/Asset/File/GalleryFile/Photo.pm b/lib/WebGUI/Asset/File/GalleryFile/Photo.pm index 39f04b217..d09cfb6fd 100644 --- a/lib/WebGUI/Asset/File/GalleryFile/Photo.pm +++ b/lib/WebGUI/Asset/File/GalleryFile/Photo.pm @@ -175,8 +175,9 @@ sub getDownloadFileUrl { =head2 getEditFormUploadControl -Returns the HTML to render the upload box and link to delete the existing -file, if necessary. +Returns the HTML to display the current photo, if it has one, and a file chooser +to either upload one, or replace the current one. Subclasses the master class +to change i18n labels. =cut @@ -188,8 +189,6 @@ sub getEditFormUploadControl { if ($self->get("filename") ne "") { $html .= WebGUI::Form::readOnly( $session, { - label => $i18n->get('current file'), - hoverHelp => $i18n->get('current file description'), value => '' }); }