Clean up Session::Privilege code.
Add $! to errorHandler message in Session::Icon when toolbar dir cannot be opened. Change i18n for default toolbar "Default" to be more self explanatory.
This commit is contained in:
parent
052d0ddb15
commit
37aad09679
3 changed files with 5 additions and 9 deletions
|
|
@ -258,7 +258,7 @@ sub getToolbarOptions {
|
|||
my $self = shift;
|
||||
$options{useLanguageDefault} = WebGUI::International->new($self->session,'WebGUI')->get(1084);
|
||||
my $dir = $self->session->config->get("extrasPath")."/toolbar";
|
||||
opendir (DIR,$dir) or $self->session->errorHandler->warn("Can't open toolbar directory!");
|
||||
opendir (DIR,$dir) or $self->session->errorHandler->warn("Can't open toolbar directory!: $!");
|
||||
my @files = readdir(DIR);
|
||||
foreach my $file (@files) {
|
||||
if (substr($file,0,1) ne ".") {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue