Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
die_coolen_jungs
our_own_cloud_project
Commits
1e0d8f17
Commit
1e0d8f17
authored
Mar 16, 2015
by
Thomas Müller
Browse files
Merge pull request #14133 from rullzer/fix_10600
Always display max upload size in admin panel
parents
bbaf97ca
bdd785f5
Changes
1
Hide whitespace changes
Inline
Side-by-side
apps/files/templates/admin.php
View file @
1e0d8f17
<?php
if
(
$_
[
'uploadChangable'
])
:
?>
<?php
OCP\Util
::
addscript
(
'files'
,
'admin'
);
?>
<form
name=
"filesForm"
class=
"section"
action=
"#"
method=
"post"
>
<h2>
<?php
p
(
$l
->
t
(
'File handling'
));
?>
</h2>
<label
for=
"maxUploadSize"
>
<?php
p
(
$l
->
t
(
'Maximum upload size'
));
?>
</label>
<input
type=
"text"
name=
'maxUploadSize'
id=
"maxUploadSize"
value=
'
<?php
p
(
$_
[
'uploadMaxFilesize'
])
?>
'
/>
<input
type=
"text"
name=
'maxUploadSize'
id=
"maxUploadSize"
value=
'
<?php
p
(
$_
[
'uploadMaxFilesize'
])
?>
'
<?php
if
(
!
$_
[
'uploadChangable'
])
{
p
(
'disabled'
);
}
?>
/>
<?php
if
(
$_
[
'displayMaxPossibleUploadSize'
])
:
?>
(
<?php
p
(
$l
->
t
(
'max. possible: '
));
p
(
$_
[
'maxPossibleUploadSize'
])
?>
)
<?php
endif
;
?>
<br/>
<input
type=
"hidden"
value=
"
<?php
p
(
$_
[
'requesttoken'
]);
?>
"
name=
"requesttoken"
/>
<input
type=
"submit"
name=
"submitFilesAdminSettings"
id=
"submitFilesAdminSettings"
value=
"
<?php
p
(
$l
->
t
(
'Save'
));
?>
"
/>
<?php
if
(
$_
[
'uploadChangable'
])
:
?>
<input
type=
"submit"
name=
"submitFilesAdminSettings"
id=
"submitFilesAdminSettings"
value=
"
<?php
p
(
$l
->
t
(
'Save'
));
?>
"
/>
<?php
else
:
?>
<?php
p
(
$l
->
t
(
'Can not be edited from here due to insufficient permissions.'
));
?>
<?php
endif
;
?>
</form>
<?php
endif
;
?>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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