diff options
author | Thierry Vignaud <tvignaud@mandriva.org> | 2004-02-13 23:25:05 +0000 |
---|---|---|
committer | Thierry Vignaud <tvignaud@mandriva.org> | 2004-02-13 23:25:05 +0000 |
commit | a95fac023d75dba8c523215e2bd65e85de8285e3 (patch) | |
tree | 96b23d2ebcbccae3d7d84cfc8b7cc7132c8e2f03 /perl-install/wizards.pm | |
parent | 68121a2c20fbf2ac39f64ab459c7e190978aafd7 (diff) | |
download | drakx-a95fac023d75dba8c523215e2bd65e85de8285e3.tar drakx-a95fac023d75dba8c523215e2bd65e85de8285e3.tar.gz drakx-a95fac023d75dba8c523215e2bd65e85de8285e3.tar.bz2 drakx-a95fac023d75dba8c523215e2bd65e85de8285e3.tar.xz drakx-a95fac023d75dba8c523215e2bd65e85de8285e3.zip |
enable default value to be dynamically computed
Diffstat (limited to 'perl-install/wizards.pm')
-rw-r--r-- | perl-install/wizards.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/wizards.pm b/perl-install/wizards.pm index 18083c4d7..4ef29fc4e 100644 --- a/perl-install/wizards.pm +++ b/perl-install/wizards.pm @@ -154,7 +154,7 @@ sub process { } my $name = ref($page->{name}) ? $page->{name}->() : $page->{name}; my %yesno = (yes => N("Yes"), no => N("No")); - my $yes = $page->{default}; + my $yes = ref($page->{default}) eq 'CODE' ? $page->{default}->() : $page->{default}; $data2 = [ { val => \$yes, type => 'list', list => [ keys %yesno ], format => sub { $yesno{$_[0]} }, gtk => { use_boxradio => 1 } } ] if $page->{type} eq "yesorno"; my $a; |