Skip to content

Commit

Permalink
Update institution upload limits. (#1864)
Browse files Browse the repository at this point in the history
  • Loading branch information
melaniekung committed Sep 26, 2024
1 parent 7956366 commit ef121f9
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@

<legend><?php echo __('Upload a %1%', ['%1%' => mb_strtolower(sfConfig::get('app_ui_label_digitalobject'))]); ?></legend>

<?php if (null == $repository || -1 == $repository->uploadLimit || floatval($repository->getDiskUsage() / pow(10, 9)) < floatval($repository->uploadLimit)) { ?>
<?php if (null == $repository || -1 == $repository->uploadLimit || floatval($repository->getDiskUsage() / pow(10, 9)) < floatval($repository->uploadLimit) || -1 == sfConfig::get('app_upload_limit')) { ?>

<?php echo $form->file->renderRow(); ?>

Expand Down
4 changes: 2 additions & 2 deletions apps/qubit/modules/settings/templates/uploadsSuccess.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
<?php echo $form
->enable_repository_quotas
->label(
__('%1% upload limits',
__('%1% upload limits meter display',
[
'%1%' => sfConfig::get('app_ui_label_repository'),
]
Expand All @@ -65,7 +65,7 @@
['%1%' => strtolower(sfConfig::get('app_ui_label_repository'))]
))
->help(__(
'Default %1% upload limit for a new %2%. A value of &quot;0&quot; (zero) disables file upload. A value of &quot;-1&quot; allows unlimited uploads',
'Default %1% upload limit for a new %2%. A value of &quot;0&quot; (zero) disables file upload. A value of &quot;-1&quot; allows unlimited uploads for all %2%s.',
[
'%1%' => strtolower(sfConfig::get('app_ui_label_digitalobject')),
'%2%' => strtolower(sfConfig::get('app_ui_label_repository')),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
</h2>
<div id="upload-collapse" class="accordion-collapse collapse show" aria-labelledby="upload-heading">
<div class="accordion-body">
<?php if (null == $repository || -1 == $repository->uploadLimit || floatval($repository->getDiskUsage() / pow(10, 9)) < floatval($repository->uploadLimit)) { ?>
<?php if (null == $repository || -1 == $repository->uploadLimit || floatval($repository->getDiskUsage() / pow(10, 9)) < floatval($repository->uploadLimit) || -1 == sfConfig::get('app_upload_limit')) { ?>

<?php echo render_field($form->file); ?>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@

<?php echo render_field($form->enable_repository_quotas
->label(
__('%1% upload limits',
__('%1% upload limits meter display',
[
'%1%' => sfConfig::get('app_ui_label_repository'),
]
Expand All @@ -54,7 +54,7 @@
['%1%' => strtolower(sfConfig::get('app_ui_label_repository'))]
))
->help(__(
'Default %1% upload limit for a new %2%. A value of &quot;0&quot; (zero) disables file upload. A value of &quot;-1&quot; allows unlimited uploads',
'Default %1% upload limit for a new %2%. A value of &quot;0&quot; (zero) disables file upload. A value of &quot;-1&quot; allows unlimited uploads for all %2%s.',
[
'%1%' => strtolower(sfConfig::get('app_ui_label_digitalobject')),
'%2%' => strtolower(sfConfig::get('app_ui_label_repository')),
Expand Down

0 comments on commit ef121f9

Please sign in to comment.