summaryrefslogtreecommitdiffstats
path: root/lib/MDV/Draklive
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2008-10-28 20:49:34 +0000
committerOlivier Blin <oblin@mandriva.com>2008-10-28 20:49:34 +0000
commit8882c347c5d80b11be3d8c6683a8279375261dce (patch)
treeb428b59e8d4b38a3c922a725b8538a853aacc501 /lib/MDV/Draklive
parentd331c206a6e86fce8ad7a7cb099c11291dd0983f (diff)
downloaddrakiso-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/Draklive')
-rw-r--r--lib/MDV/Draklive/Media.pm6
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;