Conditions | 2 |
Paths | 2 |
Total Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
9 | public function download($request) |
||
10 | { |
||
11 | $id = intval($request->param("ID")); |
||
12 | if ($id) { |
||
13 | $obj = DatabasebackupLog::get()->byID($id); |
||
14 | return SS_HTTPRequest::send_file(file_get_contents($obj->FullLocation), basename($obj->FullLocation)); |
||
15 | } |
||
16 | user_error("Could not action download", E_USER_WARNING); |
||
17 | } |
||
18 | } |
||
19 |