From 9484d564dd796c45ad8b0f480c96bbb284e0f66e Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Wed, 13 Apr 2011 16:21:13 +0200 Subject: [PATCH] Aus versehen in bc433711 entfernte Funktion "show_history" wieder eingebaut --- bin/mozilla/common.pl | 26 ++++++++++++++++++++++++++ locale/de/all | 1 + 2 files changed, 27 insertions(+) diff --git a/bin/mozilla/common.pl b/bin/mozilla/common.pl index cef7fcab8..dfa7d0f78 100644 --- a/bin/mozilla/common.pl +++ b/bin/mozilla/common.pl @@ -396,6 +396,32 @@ sub reformat_numbers { # ------------------------------------------------------------------------- +sub show_history { + $main::lxdebug->enter_sub(); + + my $form = $main::form; + my %myconfig = %main::myconfig; + my $locale = $main::locale; + + my $dbh = $form->dbconnect(\%myconfig); + my ($sort, $sortby) = split(/\-\-/, $form->{order}); + $sort =~ s/.*\.(.*)/$1/; + + $form->{title} = $locale->text("History"); + $form->header(); + print $form->parse_html_template( "common/show_history", { + "DATEN" => $form->get_history($dbh,$form->{input_name},"",$form->{order}), + "SUCCESS" => ($form->get_history($dbh,$form->{input_name}) ne "0"), + uc($sort) => 1, + uc($sort)."BY" => $sortby + } ); + + $dbh->disconnect(); + $main::lxdebug->leave_sub(); +} + +# ------------------------------------------------------------------------- + sub call_sub { $main::lxdebug->enter_sub(); diff --git a/locale/de/all b/locale/de/all index eed49d818..b7df1ba6e 100644 --- a/locale/de/all +++ b/locale/de/all @@ -823,6 +823,7 @@ $self->{texts} = { 'Help Template Variables' => 'Hilfe zu Dokumenten-Variablen', 'Here\'s an example command line:' => 'Hier ist eine Kommandozeile, die als Beispiel dient:', 'Hide by default' => 'Standardmäßig verstecken', + 'History' => 'Historie', 'History Search' => 'Historien Suche', 'History Search Engine' => 'Historien Suchmaschine', 'Homepage' => 'Homepage', -- 2.20.1