diff options
author | Michael Gapczynski <GapczynskiM@gmail.com> | 2011-08-18 19:32:24 -0400 |
---|---|---|
committer | Michael Gapczynski <GapczynskiM@gmail.com> | 2011-08-18 19:32:24 -0400 |
commit | d1aebcddf26c155c4efa580d19bb99c0e51ecbba (patch) | |
tree | 1165c856c9f1213593437c9ed84461a11112d9b0 /files/index.php | |
parent | 498356fcb85198fd447f112268bb2bb769c05089 (diff) | |
download | nextcloud-server-d1aebcddf26c155c4efa580d19bb99c0e51ecbba.tar.gz nextcloud-server-d1aebcddf26c155c4efa580d19bb99c0e51ecbba.zip |
Add downloadURL to files templates for both public links and files
Diffstat (limited to 'files/index.php')
-rw-r--r-- | files/index.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/files/index.php b/files/index.php index 5ab74a6267b..e62c9246448 100644 --- a/files/index.php +++ b/files/index.php @@ -69,10 +69,11 @@ foreach( explode( "/", $dir ) as $i ){ // make breadcrumb und filelist markup $list = new OC_Template( "files", "part.list", "" ); $list->assign( "files", $files ); -$list->assign( "baseUrl", OC_Helper::linkTo("files", "index.php?")); +$list->assign( "baseURL", OC_Helper::linkTo("files", "index.php?dir=")); +$list->assign( "downloadURL", OC_Helper::linkTo("files", "download.php?file=")); $breadcrumbNav = new OC_Template( "files", "part.breadcrumb", "" ); $breadcrumbNav->assign( "breadcrumb", $breadcrumb ); -$breadcrumbNav->assign( "baseUrl", OC_Helper::linkTo("files", "index.php?")); +$breadcrumbNav->assign( "baseURL", OC_Helper::linkTo("files", "index.php?dir=")); $maxUploadFilesize = OC_Helper::computerFileSize(ini_get('upload_max_filesize')); |