Bug 15344: Remove some other calls of GetMemberDetails from pl scripts
[koha.git] / opac / opac-privacy.pl
index 09ca341..2a98d8f 100755 (executable)
@@ -24,7 +24,6 @@ use C4::Context;
 use C4::Circulation;
 use C4::Members;
 use C4::Output;
-use C4::Dates;
 
 my $query = new CGI;
 
@@ -66,8 +65,9 @@ if ($op eq "delete_record") {
         $template->param( 'err_history_not_deleted' => 1 );
     }
 }
+
 # get borrower privacy ....
-my ( $borr ) = GetMemberDetails( $borrowernumber );
+my $borr = C4::Members::GetMember( borrowernumber => $borrowernumber );
 
 $template->param( 'Ask_data'       => '1',
                     'privacy'.$borr->{'privacy'} => 1,
@@ -76,4 +76,4 @@ $template->param( 'Ask_data'       => '1',
                     'privacyview' => 1,
 );
 
-output_html_with_http_headers $query, $cookie, $template->output;
+output_html_with_http_headers $query, $cookie, $template->output, undef, { force_no_caching => 1 };