diff --git a/wire/modules/Inputfield/InputfieldImage/InputfieldImage.module b/wire/modules/Inputfield/InputfieldImage/InputfieldImage.module index 7150e74f..9391df5c 100755 --- a/wire/modules/Inputfield/InputfieldImage/InputfieldImage.module +++ b/wire/modules/Inputfield/InputfieldImage/InputfieldImage.module @@ -720,18 +720,19 @@ class InputfieldImage extends InputfieldFile implements InputfieldItemList, Inpu $inputfields = $this->getItemInputfields($pagefile); if($inputfields) $additional .= $inputfields->render(); - + + $tooltip = $sanitizer->entities1($this->_('Click to rename')); $uploadName = $pagefile->uploadName(); + if($uploadName != "$basename.$ext") { - $tooltip = $uploadName; + $uploadName = $sanitizer->entities($this->_('Originally:') . ' ' . $uploadName); } else { - $tooltip = $this->_('Click to rename'); + $uploadName = ''; } - $tooltip = $sanitizer->entities($tooltip); $out .= "
-

$basename.$ext

+

$basename.$ext

$fileStats
$error
$buttons $actions