Since all templates have the current loggedin user as logged_in_user var (a Koha::Patron object), vars loggedinusername and loggedinusernumber should be replaced in templates.
Can you explain this one a bit more?
See comments on those 2 lines: C4/Auth.pm: $template->param( loggedinusername => $user ); # OBSOLETE - Do not reuse this in template, use logged_in_user.userid instead C4/Auth.pm: $template->param( loggedinusernumber => $borrowernumber ); # FIXME Should be replaced with logged_in_user.borrowernumber
Thanks a lot Jonathan. This is indeed where params are sent to template. All templates have var logged_in_user. I'll try to create a patch.