Oops! Fix the diff view I broke in r2784.

* lib/viewvc.py
  (view_diff): Add 'cfg' convenience variable (to avoid a stack trace
    caused by using such a thing a few lines later).


git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@2790 8cb11bc2-c004-0410-86c3-e597b4017df7
trunk
cmpilato 2012-10-03 14:33:38 +00:00
parent 4590ebbd6b
commit f4945fd7d9
1 changed files with 1 additions and 0 deletions

View File

@ -3677,6 +3677,7 @@ def view_diff(request):
raise debug.ViewVCException('Diff generation is disabled',
'403 Forbidden')
cfg = request.cfg
p1, p2, rev1, rev2, sym1, sym2 = setup_diff(request)
mime_type1, encoding1 = calculate_mime_type(request, p1, rev1)