Removed dead code.

dev
Loic d'Anterroches 2008-09-03 09:13:50 +02:00
parent 5b9dbd5c3b
commit 28817af471
1 changed files with 2 additions and 8 deletions

View File

@ -124,14 +124,8 @@ class IDF_Views_Source
}
if ($request_file_info->type != 'tree') {
$info = self::getMimeType($request_file_info->file);
if ($request->conf->getVal('scm', 'git') == 'git') {
$rep = new Pluf_HTTP_Response($scm->getBlob($request_file_info->hash),
$info[0]);
}
else {
$rep = new Pluf_HTTP_Response($scm->getBlob($request_file_info->fullpath, $commit),
$info[0]);
}
$rep = new Pluf_HTTP_Response($scm->getBlob($request_file_info->hash),
$info[0]);
$rep->headers['Content-Disposition'] = 'attachment; filename="'.$info[1].'"';
return $rep;
}