[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Koha-cvs] CVS: koha/admin systempreferences.pl,1.13,1.14
From: |
Steve Tonnesen |
Subject: |
[Koha-cvs] CVS: koha/admin systempreferences.pl,1.13,1.14 |
Date: |
Wed, 11 Jun 2003 11:57:21 -0700 |
Update of /cvsroot/koha/koha/admin
In directory sc8-pr-cvs1:/tmp/cvs-serv24435
Modified Files:
systempreferences.pl
Log Message:
Using "boolean_preference()" call to get current status of YesNo type system
preferences.
Index: systempreferences.pl
===================================================================
RCS file: /cvsroot/koha/koha/admin/systempreferences.pl,v
retrieving revision 1.13
retrieving revision 1.14
diff -C2 -r1.13 -r1.14
*** systempreferences.pl 11 Jun 2003 18:45:36 -0000 1.13
--- systempreferences.pl 11 Jun 2003 18:57:18 -0000 1.14
***************
*** 175,179 ****
} elsif ($data->{'type'} eq 'YesNo') {
$template->param('type-yesno' => 1);
! ($data->{'value'} eq 'yes') ?
($template->param('value-yes'=>1)) : ($template->param('value-no'=>1));
} elsif ($data->{'type'} eq 'free') {
$template->param('type-free' => 1);
--- 175,180 ----
} elsif ($data->{'type'} eq 'YesNo') {
$template->param('type-yesno' => 1);
!
$data->{'value'}=C4::Context->boolean_preference($data->{'variable'});
! ($data->{'value'} eq '1') ? ($template->param('value-yes'=>1))
: ($template->param('value-no'=>1));
} elsif ($data->{'type'} eq 'free') {
$template->param('type-free' => 1);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Koha-cvs] CVS: koha/admin systempreferences.pl,1.13,1.14,
Steve Tonnesen <=