From 105c387dc6b2823f6f4f8ee7613b816498c3fa08 Mon Sep 17 00:00:00 2001 From: Chris Nighswonger Date: Wed, 22 Feb 2012 14:42:08 -0500 Subject: [PATCH] Revert "Bug 6875 de-nesting Auth.pm" This reverts commit 34d8c9765fa6b68e0c38be65d863c9bdd4b6a168. -Unstable code --- C4/Auth.pm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/C4/Auth.pm b/C4/Auth.pm index b4e805cb20..d015e1e21d 100644 --- a/C4/Auth.pm +++ b/C4/Auth.pm @@ -27,6 +27,8 @@ use CGI::Session; require Exporter; use C4::Context; use C4::Templates; # to get the template +use C4::Members; +use C4::Koha; use C4::Branch; # GetBranches use C4::VirtualShelves; use POSIX qw/strftime/; @@ -186,8 +188,8 @@ sub get_template_and_user { } $borrowernumber = getborrowernumber($user) if defined($user); - require C4::Members; - my ( $borr ) = C4::Members::GetMemberDetails( $borrowernumber ); + + my ( $borr ) = GetMemberDetails( $borrowernumber ); my @bordat; $bordat[0] = $borr; $template->param( "USER_INFO" => \@bordat ); -- 2.39.5