hook(type => "getsetup", id => "recentchangesdiff",
call => \&getsetup);
hook(type => "pagetemplate", id => "recentchangesdiff",
call => \&pagetemplate);
hook(type => "getsetup", id => "recentchangesdiff",
call => \&getsetup);
hook(type => "pagetemplate", id => "recentchangesdiff",
call => \&pagetemplate);
my %params=@_;
my $template=$params{template};
if ($config{rcs} && exists $params{rev} && length $params{rev} &&
$template->query(name => "diff")) {
my %params=@_;
my $template=$params{template};
if ($config{rcs} && exists $params{rev} && length $params{rev} &&
$template->query(name => "diff")) {
$diff=join("", @lines[0..($maxlines-1)])."\n".
gettext("(Diff truncated)");
}
else {
$diff=join("", @lines);
}
$diff=join("", @lines[0..($maxlines-1)])."\n".
gettext("(Diff truncated)");
}
else {
$diff=join("", @lines);
}