Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Respect custom BACKUP_DIRECTORY in admin table downloads
This matches behavior expected by [export-database].
  • Loading branch information
jonjensen committed Apr 28, 2016
1 parent bc1eb7e commit 0a2c666
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions dist/lib/UI/pages/admin/dbdownload.html
Expand Up @@ -31,14 +31,14 @@
[set mv_deliver][/set]


[if file backup/DBDOWNLOAD.xls]
[calc] $Scratch->{mv_deliver} .= ' backup/DBDOWNLOAD.xls'; return; [/calc]
[if type=file term="[var BACKUP_DIRECTORY]/DBDOWNLOAD.xls"]
[calc] $Scratch->{mv_deliver} .= ' ' . $Tag->var('BACKUP_DIRECTORY') . '/DBDOWNLOAD.xls'; return; [/calc]
[page href="ui/backup/DBDOWNLOAD.xls"
add_dot_html=0
form="
mv_data_file=backup/DBDOWNLOAD.xls
mv_data_file=[var BACKUP_DIRECTORY]/DBDOWNLOAD.xls
mv_todo=deliver
"][L]Download XLS file[/L] ([file-info name="backup/DBDOWNLOAD.xls" date=1], [file-info name="backup/DBDOWNLOAD.xls" size=1] bytes)</A><BR>
"][L]Download XLS file[/L] ([file-info name="[var BACKUP_DIRECTORY]/DBDOWNLOAD.xls" date=1], [file-info name="[var BACKUP_DIRECTORY]/DBDOWNLOAD.xls" size=1] bytes)</a><br>
[/if]

[if scratch ui_error]
Expand Down

0 comments on commit 0a2c666

Please sign in to comment.