diff options
author | Andreas Fischer <bantu@owncloud.com> | 2014-04-20 15:58:53 +0200 |
---|---|---|
committer | Andreas Fischer <bantu@owncloud.com> | 2014-04-20 15:58:53 +0200 |
commit | f2e5494edcbc426b38eaf8d5ecc38a780fda0aca (patch) | |
tree | 18ce0c9bbaf72c028f648d2b9cd9e1fd8b6a80d2 | |
parent | 93ed6a695e1383f6b36cd7923a12b455edd312c9 (diff) | |
parent | 81c23b02da5eff64a769e3b683a2e581775c49e7 (diff) | |
download | nextcloud-server-f2e5494edcbc426b38eaf8d5ecc38a780fda0aca.tar.gz nextcloud-server-f2e5494edcbc426b38eaf8d5ecc38a780fda0aca.zip |
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
-rw-r--r-- | lib/private/files.php | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/private/files.php b/lib/private/files.php index bfe6d3c02da..152595ba697 100644 --- a/lib/private/files.php +++ b/lib/private/files.php @@ -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; } |