Revision 1edebcf0
Von Werner Hahn vor etwa 6 Jahren hinzugefügt
SL/Controller/TopQuickSearch.pm | ||
---|---|---|
70 | 70 |
namespace => 'TopQuickSearch', |
71 | 71 |
); |
72 | 72 |
|
73 |
my %enabled_names;
|
|
73 |
my @quick_search_modules;
|
|
74 | 74 |
if (my $prefs_val = $user_prefs->get('quick_search_modules')) { |
75 |
my @quick_search_modules = split ',', $prefs_val; |
|
76 |
|
|
77 |
%enabled_names = map { |
|
78 |
$_ => 1 |
|
79 |
} @quick_search_modules ; |
|
75 |
@quick_search_modules = split ',', $prefs_val; |
|
80 | 76 |
} else { |
81 |
%enabled_names = map { |
|
82 |
$_ => 1 |
|
83 |
} @{ $::instance_conf->get_quick_search_modules }; |
|
77 |
@quick_search_modules = @{ $::instance_conf->get_quick_search_modules }; |
|
84 | 78 |
} |
85 | 79 |
|
80 |
my %enabled_names = map { $_ => 1 } @quick_search_modules; |
|
81 |
|
|
86 | 82 |
grep { |
87 | 83 |
$enabled_names{$_->name} |
88 | 84 |
} $_[0]->available_modules |
Auch abrufbar als: Unified diff
TopQuickSearch: UserPreferences kleinere Syntaxverbesserungen