Commit e7282b7c authored by Ruslan Kabalin's avatar Ruslan Kabalin
Browse files

pieforms: fix maxfilesize variable


Signed-off-by: default avatarRuslan Kabalin <ruslan.kabalin@luns.net.uk>
parent 72f60248
......@@ -34,7 +34,7 @@
function pieform_element_file(Pieform $form, $element) {/*{{{*/
$result = '';
if (isset($element['maxfilesize']) && is_int($element['maxfilesize'])){
$result = '<input type="hidden" name="MAX_FILE_SIZE" value="' . $maxfilesize . '"/>';
$result = '<input type="hidden" name="MAX_FILE_SIZE" value="' . $element['maxfilesize'] . '"/>';
}
$result .= '<input type="file"' . $form->element_attributes($element) . '>';
return $result;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment