Bugzilla – Attachment 7359 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.43 KB, created by
Jared Camins-Esakov
on 2012-01-28 14:00:34 UTC
(
hide
)
Description:
Bug 6875 de-nesting Auth.pm
Filename:
MIME Type:
Creator:
Jared Camins-Esakov
Created:
2012-01-28 14:00:34 UTC
Size:
1.43 KB
patch
obsolete
>From 917cd283e77c74ff6020bdeff2a8bd2dcfc5123c 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 >Content-Type: text/plain; charset="UTF-8" > >* 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 ! > >Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com> >Rebased on latest master, 28 Jan 2012 >--- > C4/Auth.pm | 6 ++---- > 1 files changed, 2 insertions(+), 4 deletions(-) > >diff --git a/C4/Auth.pm b/C4/Auth.pm >index e4bd119..a855818 100755 >--- a/C4/Auth.pm >+++ b/C4/Auth.pm >@@ -27,8 +27,6 @@ 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/; >@@ -188,8 +186,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.2.5
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