diff options
author | Olivier Blin <oblin@mandriva.com> | 2008-10-28 20:49:34 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.com> | 2008-10-28 20:49:34 +0000 |
commit | 8882c347c5d80b11be3d8c6683a8279375261dce (patch) | |
tree | b428b59e8d4b38a3c922a725b8538a853aacc501 /lib/MDV | |
parent | d331c206a6e86fce8ad7a7cb099c11291dd0983f (diff) | |
download | drakiso-8882c347c5d80b11be3d8c6683a8279375261dce.tar drakiso-8882c347c5d80b11be3d8c6683a8279375261dce.tar.gz drakiso-8882c347c5d80b11be3d8c6683a8279375261dce.tar.bz2 drakiso-8882c347c5d80b11be3d8c6683a8279375261dce.tar.xz drakiso-8882c347c5d80b11be3d8c6683a8279375261dce.zip |
move get_media_setting as method in MDV::Draklive::Media
Diffstat (limited to 'lib/MDV')
-rw-r--r-- | lib/MDV/Draklive/Media.pm | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/MDV/Draklive/Media.pm b/lib/MDV/Draklive/Media.pm index e3fa1ac..baf1d21 100644 --- a/lib/MDV/Draklive/Media.pm +++ b/lib/MDV/Draklive/Media.pm @@ -17,4 +17,10 @@ sub get_boot_setting { $opts->{boot} ? $storage{$opts->{boot}}{$setting} : get_media_setting($media, $setting); } +#- for user-customisable media setting, that can override storage setting +sub get_media_setting { + my ($media, $setting) = @_; + $media->{$setting} || $media->get_storage_setting($setting); +} + 1; |