mirror of
https://github.com/webmin/webmin.git
synced 2026-05-30 17:50:30 +01:00
All symlinked themes must not be listed to prevent confusing dupes 2/2
This commit is contained in:
@@ -113,7 +113,7 @@ sub all_themes
|
||||
{
|
||||
local %done;
|
||||
return sort { $a->{'desc'} cmp $b->{'desc'} }
|
||||
grep { !$done{$_->{'dir'}}++ }
|
||||
grep { ! -l "$root_directory/$_->{'dir'}" && !$done{$_->{'dir'}}++ }
|
||||
map { @{$_->{'themes'}} } @{$_[0]};
|
||||
}
|
||||
|
||||
|
||||
@@ -147,7 +147,7 @@ sub all_themes
|
||||
{
|
||||
local %done;
|
||||
return sort { $a->{'desc'} cmp $b->{'desc'} }
|
||||
grep { !$done{$_->{'dir'}}++ }
|
||||
grep { ! -l "$root_directory/$_->{'dir'}" && !$done{$_->{'dir'}}++ }
|
||||
map { @{$_->{'themes'}} } @{$_[0]};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user