[PATCH] Fixed issue 41 - View Source : Missing argument 2 for IDF_Scm_Svn::getBlob()
Created an unique method declaration in the tow scm backend. Passed a more generic argument so that the scm backend could get the correct data.
This commit is contained in:
committed by
Loic d'Anterroches
parent
e4f7dd8975
commit
bd15328758
@@ -124,7 +124,7 @@ class IDF_Views_Source
|
||||
}
|
||||
if ($request_file_info->type != 'tree') {
|
||||
$info = self::getMimeType($request_file_info->file);
|
||||
$rep = new Pluf_HTTP_Response($scm->getBlob($request_file_info->hash),
|
||||
$rep = new Pluf_HTTP_Response($scm->getBlob($request_file_info, $commit),
|
||||
$info[0]);
|
||||
$rep->headers['Content-Disposition'] = 'attachment; filename="'.$info[1].'"';
|
||||
return $rep;
|
||||
|
Reference in New Issue
Block a user