From 637325bb8d8050099eaaeb06c2a50e49ccbc29a7 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Wed, 15 Feb 2006 09:46:45 +0000 Subject: [PATCH] Die Funktion Form::error(), die u.a. auch von Form::isblank() und Form::dberror() aufgerufen wird, gibt nun ihre Fehlermeldung ueber die Standard-Fehler-Vorlage aus. [r778 aus LINET prog-Repo] --- SL/Form.pm | 12 +----------- templates/webpages/generic/error.html | 14 ++++++++++++++ templates/webpages/generic/error_de.html | 14 ++++++++++++++ 3 files changed, 29 insertions(+), 11 deletions(-) create mode 100644 templates/webpages/generic/error.html create mode 100644 templates/webpages/generic/error_de.html diff --git a/SL/Form.pm b/SL/Form.pm index 241cf0bf5..90f412018 100644 --- a/SL/Form.pm +++ b/SL/Form.pm @@ -245,17 +245,7 @@ sub error { $msg =~ s/\n/
/g; $self->header; - - print qq| - - -

Error!

- -

$msg - - - - |; + $self->show_generic_error($msg); die "Error: $msg\n"; diff --git a/templates/webpages/generic/error.html b/templates/webpages/generic/error.html new file mode 100644 index 000000000..eb43ed772 --- /dev/null +++ b/templates/webpages/generic/error.html @@ -0,0 +1,14 @@ + + + + + + + + +
+ + + + + diff --git a/templates/webpages/generic/error_de.html b/templates/webpages/generic/error_de.html new file mode 100644 index 000000000..838c70658 --- /dev/null +++ b/templates/webpages/generic/error_de.html @@ -0,0 +1,14 @@ + + + + + + + + +
+ + + + + -- 2.20.1