[Koha-cvs] CVS: koha moredetail.pl,1.18,1.19

Ambrose Li acli at users.sourceforge.net
Sun Feb 9 10:00:17 CET 2003


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

Modified Files:
	moredetail.pl 
Log Message:
Update to get_template_and_user


Index: moredetail.pl
===================================================================
RCS file: /cvsroot/koha/koha/moredetail.pl,v
retrieving revision 1.18
retrieving revision 1.19
diff -C2 -r1.18 -r1.19
*** moredetail.pl	28 Oct 2002 22:29:08 -0000	1.18
--- moredetail.pl	9 Feb 2003 09:00:12 -0000	1.19
***************
*** 37,50 ****
  
  my $subject=$query->param('subject');
  # if its a subject we need to use the subject.tmpl
! my $template;
! if ($subject){
! 	$template = gettemplate("catalogue/subject.tmpl");
! } else {
! 	$template = gettemplate("catalogue/moredetail.tmpl");
! }
! my $flagsrequired;
! $flagsrequired->{catalogue}=1;
! my ($loggedinuser, $cookie, $sessionID) = checkauth($query, 0, $flagsrequired);
  
  # get variables 
--- 37,50 ----
  
  my $subject=$query->param('subject');
+ 
  # if its a subject we need to use the subject.tmpl
! my ($template, $loggedinuser, $cookie) = get_template_and_user({
! 	template_name   => ($subject? 'catalogue/subject.tmpl':
! 				      'catalogue/moredetail.tmpl'),
! 	query           => $query,
! 	type            => "intranet",
! 	authnotrequired => 0,
! 	flagsrequired   => {catalogue => 1},
!     });
  
  # get variables 





More information about the Koha-cvs mailing list