Removed dead code.
This commit is contained in:
parent
5b9dbd5c3b
commit
28817af471
@ -124,14 +124,8 @@ class IDF_Views_Source
|
|||||||
}
|
}
|
||||||
if ($request_file_info->type != 'tree') {
|
if ($request_file_info->type != 'tree') {
|
||||||
$info = self::getMimeType($request_file_info->file);
|
$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),
|
$rep = new Pluf_HTTP_Response($scm->getBlob($request_file_info->hash),
|
||||||
$info[0]);
|
$info[0]);
|
||||||
}
|
|
||||||
else {
|
|
||||||
$rep = new Pluf_HTTP_Response($scm->getBlob($request_file_info->fullpath, $commit),
|
|
||||||
$info[0]);
|
|
||||||
}
|
|
||||||
$rep->headers['Content-Disposition'] = 'attachment; filename="'.$info[1].'"';
|
$rep->headers['Content-Disposition'] = 'attachment; filename="'.$info[1].'"';
|
||||||
return $rep;
|
return $rep;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user