From 70c08fd084e8e0bb2c489352743007fa005f1d59 Mon Sep 17 00:00:00 2001 From: arensb Date: Fri, 11 Oct 2002 12:40:50 +0000 Subject: [PATCH] Replaced &requireDBI with C4::Context->dbh, thus making the "use Database" statement unnecessary. Fixed POD up a bit. --- C4/Output.pm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/C4/Output.pm b/C4/Output.pm index 36b347251b..39c493f605 100644 --- a/C4/Output.pm +++ b/C4/Output.pm @@ -27,8 +27,6 @@ require Exporter; use C4::Context; use C4::Database; -use C4::Search; #for getting the systempreferences - # FIXME - Get rid of this, and use C4::Context->preference use vars qw($VERSION @ISA @EXPORT @EXPORT_OK %EXPORT_TAGS); @@ -762,7 +760,8 @@ sub mkformnotable{ =item mkform2 $str = &mkform2($action, - $fieldname => "$fieldpos\t$required\t$label\t$fieldtype\t$value0\t$value1\t...", + $fieldname => + "$fieldpos\t$required\t$label\t$fieldtype\t$value0\t$value1\t...", ... ); print $str; @@ -1027,6 +1026,7 @@ sub getkeytableselectoptions { # inputs my ( $dbh, # DBI handle + # FIXME - Obsolete argument $tablename, # name of table containing list of choices $keyfieldname, # column name of code to use in option list $descfieldname, # column name of descriptive field @@ -1041,7 +1041,7 @@ sub getkeytableselectoptions { ); my $debug=0; - requireDBI($dbh,"getkeytableselectoptions"); + $dbh = C4::Context->dbh; if ( $showkey ) { $orderfieldname=$keyfieldname; -- 2.39.2