|
|
|
@ -220,16 +220,11 @@ class OC_Files { |
|
|
|
|
if (!OC_Config::getValue('allowZipDownload', true)) { |
|
|
|
|
$l = OC_L10N::get('lib'); |
|
|
|
|
header("HTTP/1.0 409 Conflict"); |
|
|
|
|
$tmpl = new OC_Template('', 'error', 'user'); |
|
|
|
|
$errors = array( |
|
|
|
|
array( |
|
|
|
|
'error' => $l->t('ZIP download is turned off.'), |
|
|
|
|
'hint' => $l->t('Files need to be downloaded one by one.') |
|
|
|
|
. '<br/><a href="javascript:history.back()">' . $l->t('Back to Files') . '</a>', |
|
|
|
|
) |
|
|
|
|
OC_Template::printErrorPage( |
|
|
|
|
$l->t('ZIP download is turned off.'), |
|
|
|
|
$l->t('Files need to be downloaded one by one.') |
|
|
|
|
. '<br/><a href="javascript:history.back()">' . $l->t('Back to Files') . '</a>' |
|
|
|
|
); |
|
|
|
|
$tmpl->assign('errors', $errors); |
|
|
|
|
$tmpl->printPage(); |
|
|
|
|
exit; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -252,17 +247,12 @@ class OC_Files { |
|
|
|
|
if ($totalsize > $zipLimit) { |
|
|
|
|
$l = OC_L10N::get('lib'); |
|
|
|
|
header("HTTP/1.0 409 Conflict"); |
|
|
|
|
$tmpl = new OC_Template('', 'error', 'user'); |
|
|
|
|
$errors = array( |
|
|
|
|
array( |
|
|
|
|
'error' => $l->t('Selected files too large to generate zip file.'), |
|
|
|
|
'hint' => 'Download the files in smaller chunks, seperately' |
|
|
|
|
.' or kindly ask your administrator.<br/><a href="javascript:history.back()">' |
|
|
|
|
. $l->t('Back to Files') . '</a>', |
|
|
|
|
) |
|
|
|
|
OC_Template::printErrorPage( |
|
|
|
|
$l->t('Selected files too large to generate zip file.'), |
|
|
|
|
'Download the files in smaller chunks, seperately' |
|
|
|
|
.' or kindly ask your administrator.<br/><a href="javascript:history.back()">' |
|
|
|
|
. $l->t('Back to Files') . '</a>' |
|
|
|
|
); |
|
|
|
|
$tmpl->assign('errors', $errors); |
|
|
|
|
$tmpl->printPage(); |
|
|
|
|
exit; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|