diff options
author | matteo <matteo.pasotti@gmail.com> | 2014-07-02 00:36:16 +0300 |
---|---|---|
committer | matteo <matteo.pasotti@gmail.com> | 2014-07-02 00:36:16 +0300 |
commit | 540b36d25e82ed2f2643250f254c6fc9e4a62ad2 (patch) | |
tree | 3becd296c800f44411808d700f5efd6abd49d215 /lib/AdminPanel/Module/LogViewer.pm | |
parent | 94fddcaad5a0c3e6f8cb4d7504f4e5b0443b99bc (diff) | |
download | manatools-540b36d25e82ed2f2643250f254c6fc9e4a62ad2.tar manatools-540b36d25e82ed2f2643250f254c6fc9e4a62ad2.tar.gz manatools-540b36d25e82ed2f2643250f254c6fc9e4a62ad2.tar.bz2 manatools-540b36d25e82ed2f2643250f254c6fc9e4a62ad2.tar.xz manatools-540b36d25e82ed2f2643250f254c6fc9e4a62ad2.zip |
use English to improve readability
Diffstat (limited to 'lib/AdminPanel/Module/LogViewer.pm')
-rw-r--r-- | lib/AdminPanel/Module/LogViewer.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/AdminPanel/Module/LogViewer.pm b/lib/AdminPanel/Module/LogViewer.pm index ec6025dc..28c0d67a 100644 --- a/lib/AdminPanel/Module/LogViewer.pm +++ b/lib/AdminPanel/Module/LogViewer.pm @@ -61,6 +61,7 @@ use AdminPanel::Shared::JournalCtl; use POSIX qw/strftime floor/; +use English; use Date::Simple (); use File::HomeDir qw(home); @@ -476,8 +477,7 @@ sub _warn_about_user_mode { "You will not be able to read system logs which you do not have rights to,\n". "but you may still browse all the others."); - # $EUID: effective user identifier - if(($> != 0) and (!$self->sh_gui->ask_OkCancel({title => $title, text => $msg}))) { + if(($EUID != 0) and (!$self->sh_gui->ask_OkCancel({title => $title, text => $msg}))) { # TODO add Privileges? return 0; } |