mirror of
https://github.com/nextcloud/server.git
synced 2026-06-12 18:21:40 -04:00
Merge pull request #8203 from owncloud/correct-link
Use direct link instead of JS * owncloud/correct-link: Link to previous directory Use direct link instead of JS
This commit is contained in:
commit
f2e5494edc
1 changed files with 2 additions and 3 deletions
|
|
@ -231,7 +231,7 @@ class OC_Files {
|
|||
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>'
|
||||
. '<br/><a href="'.OCP\Util::linkTo('files', 'index.php', array('dir' => $dir)).'">' . $l->t('Back to Files') . '</a>'
|
||||
);
|
||||
exit;
|
||||
}
|
||||
|
|
@ -258,8 +258,7 @@ class OC_Files {
|
|||
OC_Template::printErrorPage(
|
||||
$l->t('Selected files too large to generate zip file.'),
|
||||
$l->t('Please download the files separately in smaller chunks or kindly ask your administrator.')
|
||||
.'<br/><a href="javascript:history.back()">'
|
||||
. $l->t('Back to Files') . '</a>'
|
||||
. '<br/><a href="'.OCP\Util::linkTo('files', 'index.php', array('dir' => $dir)).'">' . $l->t('Back to Files') . '</a>'
|
||||
);
|
||||
exit;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue