From f1310833154a96ab1fbb5d1da2c3297aa4c7eaf0 Mon Sep 17 00:00:00 2001 From: Thomas Keller Date: Fri, 25 Mar 2011 00:45:06 +0100 Subject: [PATCH] Skip linking to a non-existing diff section for changed binary files (fixes issue 643) --- src/IDF/templates/idf/source/commit.html | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/IDF/templates/idf/source/commit.html b/src/IDF/templates/idf/source/commit.html index 2c972ed..7cc2bf7 100644 --- a/src/IDF/templates/idf/source/commit.html +++ b/src/IDF/templates/idf/source/commit.html @@ -38,8 +38,7 @@ A{$filename}{if !empty($diff.files[$filename])} ({trans 'full'}){/if} {/foreach} {foreach $changes.patches as $filename} -{assign $ndiff = count($diff.files[$filename]['chunks'])} -M{$filename}{if !empty($diff.files[$filename])} ({blocktrans $ndiff}{$ndiff} diff{plural}{$ndiff} diffs{/blocktrans}){/if} +M{$filename}{if !empty($diff.files[$filename])}{assign $ndiff = count($diff.files[$filename]['chunks'])} ({blocktrans $ndiff}{$ndiff} diff{plural}{$ndiff} diffs{/blocktrans}){/if} {/foreach} {foreach $changes.properties as $filename => $properties} P{$filename}