summaryrefslogtreecommitdiffstats
path: root/perl-install/install_any.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2003-08-10 23:53:18 +0000
committerPascal Rigaux <pixel@mandriva.com>2003-08-10 23:53:18 +0000
commitba2e9575a26cb1c9a81ef5d1303422f862d5e019 (patch)
tree14240b5d02125b97c1e8c6279573f4fe200cb173 /perl-install/install_any.pm
parent5f78b9376156a4c9d9cec4e8c630a632c4402fea (diff)
downloaddrakx-ba2e9575a26cb1c9a81ef5d1303422f862d5e019.tar
drakx-ba2e9575a26cb1c9a81ef5d1303422f862d5e019.tar.gz
drakx-ba2e9575a26cb1c9a81ef5d1303422f862d5e019.tar.bz2
drakx-ba2e9575a26cb1c9a81ef5d1303422f862d5e019.tar.xz
drakx-ba2e9575a26cb1c9a81ef5d1303422f862d5e019.zip
use $::prefix instead of passing $prefix to functions
Diffstat (limited to 'perl-install/install_any.pm')
-rw-r--r--perl-install/install_any.pm7
1 files changed, 3 insertions, 4 deletions
diff --git a/perl-install/install_any.pm b/perl-install/install_any.pm
index d5154f17a..e9bb89d04 100644
--- a/perl-install/install_any.pm
+++ b/perl-install/install_any.pm
@@ -985,10 +985,9 @@ sub remove_advertising {
@advertising_images = ();
}
-sub disable_user_view {
- my ($prefix) = @_;
- substInFile { s/^UserView=.*/UserView=true/ } "$prefix/usr/share/config/kdm/kdmrc";
- substInFile { s/^Browser=.*/Browser=0/ } "$prefix/etc/X11/gdm/gdm.conf";
+sub disable_user_view() {
+ substInFile { s/^UserView=.*/UserView=true/ } "$::prefix/usr/share/config/kdm/kdmrc";
+ substInFile { s/^Browser=.*/Browser=0/ } "$::prefix/etc/X11/gdm/gdm.conf";
}
sub set_security {