Bugzilla – Attachment 5496 Details for
Bug 6875
de-nesting C4 packages
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 6875 de-nesting Auth.pm
Bug-6875-de-nesting-Authpm.patch (text/plain), 1.29 KB, created by
Paul Poulain
on 2011-09-21 15:20:29 UTC
(
hide
)
Description:
Bug 6875 de-nesting Auth.pm
Filename:
MIME Type:
Creator:
Paul Poulain
Created:
2011-09-21 15:20:29 UTC
Size:
1.29 KB
patch
obsolete
>From 5522c7bbfcea1c065b85f26854d29cd5ef0a6350 Mon Sep 17 00:00:00 2001 >From: Paul Poulain <paul.poulain@biblibre.com> >Date: Fri, 16 Sep 2011 18:02:58 +0200 >Subject: [PATCH] Bug 6875 de-nesting Auth.pm > >* removed use C4::Koha that is useless >* moved "use C4::Members" to "require C4::Members" just before GetMemberDetails call. This will avoid loading C4::Member everytime a page is called by someone not logged > >* still to do = work on C4::VirtualShelves, that can be optimized, definetly ! >--- > C4/Auth.pm | 6 ++---- > 1 files changed, 2 insertions(+), 4 deletions(-) > >diff --git a/C4/Auth.pm b/C4/Auth.pm >index 495f04c..862b2a9 100644 >--- a/C4/Auth.pm >+++ b/C4/Auth.pm >@@ -27,8 +27,6 @@ use CGI::Session; > require Exporter; > use C4::Context; > use C4::Output; # to get the template >-use C4::Members; >-use C4::Koha; > use C4::Branch; # GetBranches > use C4::VirtualShelves; > use POSIX qw/strftime/; >@@ -181,8 +179,8 @@ sub get_template_and_user { > } > > $borrowernumber = getborrowernumber($user) if defined($user); >- >- my ( $borr ) = GetMemberDetails( $borrowernumber ); >+ require C4::Members; >+ my ( $borr ) = C4::Members::GetMemberDetails( $borrowernumber ); > my @bordat; > $bordat[0] = $borr; > $template->param( "USER_INFO" => \@bordat ); >-- >1.7.4.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 6875
:
5442
|
5443
|
5496
|
5497
|
5498
|
5499
|
5500
|
5501
|
5502
|
5503
|
5504
|
5505
|
5506
|
5507
|
5508
|
5509
|
5510
|
5511
|
5512
|
7359
|
7360
|
7361
|
7362
|
7363
|
7364
|
7365
|
7652
|
7654
|
7655
|
7656
|
7657
|
7658
|
7770
|
7771
|
7808
|
7844
|
8095
|
8133
|
8134
|
8135