Revision 1342327c
Von Werner Hahn vor mehr als 8 Jahren hinzugefügt
SL/Controller/TopQuickSearch.pm | ||
---|---|---|
2 | 2 |
|
3 | 3 |
use strict; |
4 | 4 |
use parent qw(SL::Controller::Base); |
5 |
our $VERSION = 1; |
|
5 | 6 |
|
6 | 7 |
use SL::ClientJS; |
7 | 8 |
use SL::JSON; |
8 | 9 |
use SL::Locale::String qw(t8); |
10 |
use SL::Helper::UserPreferences; |
|
9 | 11 |
|
10 | 12 |
use Rose::Object::MakeMethods::Generic ( |
11 |
'scalar --get_set_init' => [ qw(module js) ], |
|
13 |
'scalar --get_set_init' => [ qw(module js prefs) ],
|
|
12 | 14 |
); |
13 | 15 |
|
14 | 16 |
my @available_modules = ( |
... | ... | |
66 | 68 |
sub enabled_modules { |
67 | 69 |
my %enabled_names = map { |
68 | 70 |
$_ => 1 |
69 |
} @{ $::instance_conf->get_quick_search_modules }; |
|
71 |
} @{ |
|
72 |
$::instance_conf->get_quick_search_modules |
|
73 |
}; |
|
70 | 74 |
|
71 | 75 |
grep { |
72 | 76 |
$enabled_names{$_->name} |
... | ... | |
109 | 113 |
} |
110 | 114 |
} |
111 | 115 |
|
116 |
sub init_prefs { |
|
117 |
SL::Helper::UserPreferences->new( |
|
118 |
namespace => __PACKAGE__, |
|
119 |
upgrade_callbacks => {}, |
|
120 |
) |
|
121 |
} |
|
122 |
|
|
112 | 123 |
1; |
113 | 124 |
|
114 | 125 |
__END__ |
Auch abrufbar als: Unified diff
FileUploader: SL/Controller/FileUploader.pm nach SL/Helper/FileUploader.pm verschoben
Shop: typo im Connector und js
ShopPart: Benutzerdefinierte Variablen werden jetzt angeziegt im ShopPartreiter, TODO extra BDV's für Shoppart implementieren