Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mahara
mahara
Commits
e7282b7c
Commit
e7282b7c
authored
Sep 13, 2010
by
Ruslan Kabalin
Browse files
pieforms: fix maxfilesize variable
Signed-off-by:
Ruslan Kabalin
<
ruslan.kabalin@luns.net.uk
>
parent
72f60248
Changes
1
Hide whitespace changes
Inline
Side-by-side
htdocs/lib/pieforms/pieform/elements/file.php
View file @
e7282b7c
...
...
@@ -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
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment