koha-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Koha-cvs] CVS: koha/C4 Auth.pm,1.26,1.27


From: Paul POULAIN
Subject: [Koha-cvs] CVS: koha/C4 Auth.pm,1.26,1.27
Date: Mon, 05 May 2003 08:01:00 -0700

Update of /cvsroot/koha/koha/C4
In directory sc8-pr-cvs1:/tmp/cvs-serv25217/C4

Modified Files:
        Auth.pm 
Log Message:
moving loggedinuser => loggedinusername in includes and Auth.pm :

The $loggedinuser in Koha is the CODE of the logged user (result of 
get_user_and_template subroutine).
BTW, in get_user_and_template subroutine, the TMPL_VAR loggedinuser is replaced 
by the NAME of the user.
This is troubleshooting.
so, I replace the name by the "loggedinusername" template variable.
If you want to add the username somewhere, just add <TMPL_VAR 
name="loggedinusername"> in the template.

Fixes bug #401

Index: Auth.pm
===================================================================
RCS file: /cvsroot/koha/koha/C4/Auth.pm,v
retrieving revision 1.26
retrieving revision 1.27
diff -C2 -r1.26 -r1.27
*** Auth.pm     2 May 2003 13:05:08 -0000       1.26
--- Auth.pm     5 May 2003 15:00:56 -0000       1.27
***************
*** 116,120 ****
        my $borrowernumber;
        if ($user) {
!               $template->param(loggedinuser => $user);
                $template->param(sessionID => $sessionID);
  
--- 116,120 ----
        my $borrowernumber;
        if ($user) {
!               $template->param(loggedinusername => $user);
                $template->param(sessionID => $sessionID);
  




reply via email to

[Prev in Thread] Current Thread [Next in Thread]