From 7e7a50d266e62351b5ba6fcdd81f45cf4e60c98b Mon Sep 17 00:00:00 2001 From: Ben Hutchings Date: Mon, 27 Aug 2007 14:37:15 +0000 Subject: [PATCH] Added patch for Maypole::View::TT to remove use of a warn method on the request class since there is no default implementation. --- debian/patches/105_dont-use-warn-method.diff | 31 ++++++++++++++++++++ debian/patches/series | 1 + 2 files changed, 32 insertions(+) create mode 100644 debian/patches/105_dont-use-warn-method.diff diff --git a/debian/patches/105_dont-use-warn-method.diff b/debian/patches/105_dont-use-warn-method.diff new file mode 100644 index 0000000..366c488 --- /dev/null +++ b/debian/patches/105_dont-use-warn-method.diff @@ -0,0 +1,31 @@ +--- maypole.orig/lib/Maypole/View/TT.pm ++++ maypole/lib/Maypole/View/TT.pm +@@ -43,11 +43,11 @@ + } else { + if ($@) { + my $error = "fatal error in template '$template_file' : $@\nTT paths : " . join(', ',$self->paths($r)) . "\n"; +- $r->warn($error); ++ warn $error; + $r->{error} = $error; + } else { + my $error = "TT error for template '$template_file'\n" . $self->{tt}->error . "\nTT paths : " . join(', ',$self->paths($r)) . "\n"; +- $r->warn($error); ++ warn $error; + $r->{error} = $error; + } + return ERROR; +@@ -62,12 +62,12 @@ + # Need to be very careful here. + my $tt = Template->new; + unless (ref $r->{config}) { +- $r->warn("no config for this request"); ++ warn "no config for this request"; + $error .= '
There was a problem finding configuration for this request'; + $r->{config} ||= {}; + } + +- $r->warn("report_error - reporting error to user : $error\n"); ++ warn "report_error - reporting error to user : $error\n"; + + if ($tt->process(\$error_template, + { err_type => $type, error => $error, diff --git a/debian/patches/series b/debian/patches/series index 69c9bda..0f93769 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -2,4 +2,5 @@ 102_fix-apache_mvc-test.diff 103_fix-view_object-warning.diff 104_add-cgi-error-status.diff +105_dont-use-warn-method.diff 201_no-file-mmagic-xs.diff -- 2.39.2