diff --git a/forms/UploadField.php b/forms/UploadField.php index 3f43f3f99..8d35f2f6a 100644 --- a/forms/UploadField.php +++ b/forms/UploadField.php @@ -550,7 +550,7 @@ class UploadField extends FileField { )); // we do this in a second customise to have the access to the previous customisations return $file->customise(array( - 'UploadFieldFileButtons' => (string)$file->renderWith($this->getTemplateFileButtons()) + 'UploadFieldFileButtons' => $file->renderWith($this->getTemplateFileButtons()) )); }