diff options
author | Angelo Naselli <anaselli@linux.it> | 2014-07-10 09:25:57 +0200 |
---|---|---|
committer | Angelo Naselli <anaselli@linux.it> | 2014-07-10 09:25:57 +0200 |
commit | 48b22dca97fa8a84912a60bc835645e8fbbe1952 (patch) | |
tree | 85c639e65f16569fe5bed86edb5793f83d9d5b11 /modules/rpmdragora | |
parent | 1cd05d978ae67c7efebab7ca33c35a7cc4e4e668 (diff) | |
download | colin-keep-48b22dca97fa8a84912a60bc835645e8fbbe1952.tar colin-keep-48b22dca97fa8a84912a60bc835645e8fbbe1952.tar.gz colin-keep-48b22dca97fa8a84912a60bc835645e8fbbe1952.tar.bz2 colin-keep-48b22dca97fa8a84912a60bc835645e8fbbe1952.tar.xz colin-keep-48b22dca97fa8a84912a60bc835645e8fbbe1952.zip |
Changed to is_root_capability_required atm to avoid redeclarations
Diffstat (limited to 'modules/rpmdragora')
-rwxr-xr-x | modules/rpmdragora/edit-urpm-sources.pl | 10 | ||||
-rwxr-xr-x | modules/rpmdragora/gurpmi.addmedia | 2 |
2 files changed, 7 insertions, 5 deletions
diff --git a/modules/rpmdragora/edit-urpm-sources.pl b/modules/rpmdragora/edit-urpm-sources.pl index 5f6bb65..30ec4f7 100755 --- a/modules/rpmdragora/edit-urpm-sources.pl +++ b/modules/rpmdragora/edit-urpm-sources.pl @@ -22,19 +22,21 @@ # # $Id: edit-urpm-sources.pl 244763 2008-09-04 16:12:52Z tv $ -use strict; + use AdminPanel::Rpmdragora::init; use AdminPanel::rpmdragora; -use common qw(N); use AdminPanel::Rpmdragora::edit_urpm_sources; use AdminPanel::Privileges; +use AdminPanel::Shared::Locales; + +my $loc = AdminPanel::Shared::Locales->new(domain_name => 'rpmdrake'); -if (AdminPanel::Privileges::require_root_capability()) { +if (AdminPanel::Privileges::is_root_capability_required()) { require AdminPanel::Shared::GUI; my $sh_gui = AdminPanel::Shared::GUI->new(); $sh_gui->warningMsgBox({ title => "gurpmi.addmedia", - text => N("root privileges required"), + text => $loc->N("root privileges required"), }); exit (-1); } diff --git a/modules/rpmdragora/gurpmi.addmedia b/modules/rpmdragora/gurpmi.addmedia index e79dd95..3aafbf2 100755 --- a/modules/rpmdragora/gurpmi.addmedia +++ b/modules/rpmdragora/gurpmi.addmedia @@ -56,7 +56,7 @@ use MDK::Common::Func; use common qw(N); # -if (AdminPanel::Privileges::require_root_capability()) { +if (AdminPanel::Privileges::is_root_capability_required()) { require AdminPanel::Shared::GUI; my $sh_gui = AdminPanel::Shared::GUI->new(); $sh_gui->warningMsgBox({ |