srchub

srchub Commit Details


Date:2015-01-03 16:42:52 (10 years 2 months ago)
Author:Natalie Adams
Branch:master
Commit:8555a1b7f7fee2f077e8608220a1269f40d439f2
Parents: 3ccdcf666b6e1165a85140d9bc5b22350085827a
Message:Fixing Issue 92 - Downloading files with same name

Changes:

File differences

indefero/src/IDF/Views/Download.php
198198
199199
200200
201
201
202202
203203
204204
    public function download($request, $match)
    {
        $prj = $request->project;
        $sql = new Pluf_SQL('file=%s', array($match[2]));
        $sql = new Pluf_SQL('file=%s and project=%s', array($match[2], $prj->id));
        $upload = Pluf::factory('IDF_Upload')->getOne(array('filter' => $sql->gen()));
        if (!$upload) throw new Pluf_HTTP_Error404();
        $prj->inOr404($upload);

Archive Download the corresponding diff file

Branches

Number of commits:
Page rendered in 0.22235s using 20 queries.