The commit object's diff member changed from "changes" to "diff"

so the "dowload the corresponding diff file" link was broken.
This commit is contained in:
Thomas Keller 2011-01-15 01:02:22 +01:00
parent a7b62a30ff
commit cdebac0b13

View File

@ -342,7 +342,7 @@ class IDF_Views_Source
if (!$cobject) {
throw new Exception('could not retrieve commit object for '. $commit);
}
$rep = new Pluf_HTTP_Response($cobject->changes, 'text/plain');
$rep = new Pluf_HTTP_Response($cobject->diff, 'text/plain');
$rep->headers['Content-Disposition'] = 'attachment; filename="'.$commit.'.diff"';
return $rep;
}