aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorAngelo Naselli <anaselli@linux.it>2014-12-06 16:20:42 +0100
committerAngelo Naselli <anaselli@linux.it>2014-12-06 16:20:42 +0100
commita1296090427bd2be3278f475da6ff918c4097d4c (patch)
tree361e5f1bbfa7c5da0463b1015ec070b8d455bccd /lib
parent39766b03066e1d9d85954408fc54ffeb55bf8b67 (diff)
downloadmanatools-a1296090427bd2be3278f475da6ff918c4097d4c.tar
manatools-a1296090427bd2be3278f475da6ff918c4097d4c.tar.gz
manatools-a1296090427bd2be3278f475da6ff918c4097d4c.tar.bz2
manatools-a1296090427bd2be3278f475da6ff918c4097d4c.tar.xz
manatools-a1296090427bd2be3278f475da6ff918c4097d4c.zip
list_passwd undefined
Diffstat (limited to 'lib')
-rw-r--r--lib/AdminPanel/Rpmdragora/gui.pm5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/AdminPanel/Rpmdragora/gui.pm b/lib/AdminPanel/Rpmdragora/gui.pm
index 926783b9..1f2c2890 100644
--- a/lib/AdminPanel/Rpmdragora/gui.pm
+++ b/lib/AdminPanel/Rpmdragora/gui.pm
@@ -39,6 +39,7 @@ use MDK::Common::DataStructure qw(difference2 member intersection);
use MDK::Common::Various qw(chomp_ to_bool);
use MDK::Common::String qw(formatAlaTeX);
use MDK::Common::Math qw(sum);
+use MDK::Common::System qw(list_passwd);
use AdminPanel::rpmdragora;
use AdminPanel::Rpmdragora::open_db;
@@ -154,7 +155,7 @@ sub get_description {
join("<br />",
(eval {
encode_entities($pkg->{description}) || encode_entities($update_descr->{description});
- } || '<i>'. $loc->N("No description").'</i>'));
+ } || '<i>'. $loc->N("No description").'</i>'), "");
}
sub get_string_from_keywords {
@@ -1751,7 +1752,7 @@ sub run_help_callback {
sub run_browser {
my $url = shift;
- my ($user) = grep { $_->[2] eq $ENV{USERHELPER_UID} } list_passwd();
+ my ($user) = grep { $_->[2] eq $ENV{USERHELPER_UID} } MDK::Common::System::list_passwd();
local $ENV{HOME} = $user->[7] if $user && $ENV{USERHELPER_UID};
AdminPanel::Shared::RunProgram::raw({ detach => 1, as_user => 1 }, 'www-browser', $url);
}